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/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/sms-service/src/quorumclient/Makefile b/sms-service/src/quorumclient/Makefile
index 00e12a7..f3c9be6 100644
--- a/sms-service/src/quorumclient/Makefile
+++ b/sms-service/src/quorumclient/Makefile
@@ -1,14 +1,14 @@
GOPATH := $(shell realpath "$(CURDIR)/../../")
BINARY := quorumclient
PLATFORM := linux
-DEPENDENCIES := github.com/golang/dep/cmd/dep
export GOPATH ...
+export GO111MODULE=on
all: test build
deploy: test build
-build: deps format
+build: clean
CGO_ENABLED=0 GOOS=$(PLATFORM) go build -a \
-ldflags '-extldflags "-static"' \
-o $(GOPATH)/target/$(BINARY) -v quorumclient.go
@@ -23,8 +23,4 @@ test:
format:
go fmt ./...
-deps:
- go get -u $(DEPENDENCIES)
- $(GOPATH)/bin/dep ensure
-
.PHONY: test