summaryrefslogtreecommitdiffstats
path: root/sms-service/src/quorumclient/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sms-service/src/quorumclient/Makefile')
-rw-r--r--sms-service/src/quorumclient/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/sms-service/src/quorumclient/Makefile b/sms-service/src/quorumclient/Makefile
index 720be29..00e12a7 100644
--- a/sms-service/src/quorumclient/Makefile
+++ b/sms-service/src/quorumclient/Makefile
@@ -1,13 +1,14 @@
GOPATH := $(shell realpath "$(CURDIR)/../../")
BINARY := quorumclient
PLATFORM := linux
+DEPENDENCIES := github.com/golang/dep/cmd/dep
export GOPATH ...
all: test build
deploy: test build
-build: format
+build: deps format
CGO_ENABLED=0 GOOS=$(PLATFORM) go build -a \
-ldflags '-extldflags "-static"' \
-o $(GOPATH)/target/$(BINARY) -v quorumclient.go
@@ -22,4 +23,8 @@ test:
format:
go fmt ./...
+deps:
+ go get -u $(DEPENDENCIES)
+ $(GOPATH)/bin/dep ensure
+
.PHONY: test