aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-28 19:14:04 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-28 19:14:04 +0100
commit80a8759eb46d538351b6e345bd2eabd6ee03a35b (patch)
tree6a8d4f4af00e147860bc1440ceab1ab66ecd20b6 /Makefile
parent35b93d27224f49e984ebe2894369528202e1e428 (diff)
downloadeasybridge-80a8759eb46d538351b6e345bd2eabd6ee03a35b.tar.gz
easybridge-80a8759eb46d538351b6e345bd2eabd6ee03a35b.zip
Add Dockerfile, LICENSE, README.md
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 21 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5f03483..f6eafd5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,21 @@
-all:
- go build
+BIN=easybridge
+DOCKER=lxpz/easybridge_amd64
+
+SRC= mxlib/registration.go mxlib/api.go mxlib/mediaobject.go mxlib/client.go \
+ connector/connector.go connector/config.go connector/mediaobject.go \
+ connector/irc/irc.go connector/irc/config.go \
+ connector/xmpp/config.go connector/xmpp/xmpp.go \
+ connector/mattermost/mattermost.go connector/mattermost/config.go \
+ web.go account.go main.go server.go db.go util.go
+
+all: $(BIN)
+
+$(BIN): $(SRC)
+ go get -d -v
+ go build -v -o $(BIN)
+
+docker: $(BIN)
+ docker build -t $(DOCKER):$(TAG) .
+ docker push $(DOCKER):$(TAG)
+ docker tag $(DOCKER):$(TAG) $(DOCKER):latest
+ docker push $(DOCKER):latest