summaryrefslogtreecommitdiffstats
path: root/sms-service/src/sms/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sms-service/src/sms/Makefile')
-rw-r--r--sms-service/src/sms/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/sms-service/src/sms/Makefile b/sms-service/src/sms/Makefile
index a0add45..137fe40 100644
--- a/sms-service/src/sms/Makefile
+++ b/sms-service/src/sms/Makefile
@@ -1,14 +1,14 @@
GOPATH := $(shell realpath "$(CURDIR)/../../")
BINARY := sms
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 sms.go
@@ -17,14 +17,10 @@ clean:
go clean
rm -f $(GOPATH)/target/$(BINARY)
-test: deps
+test:
go test -cover ./...
format:
go fmt ./...
-deps:
- go get -u $(DEPENDENCIES)
- $(GOPATH)/bin/dep ensure
-
.PHONY: test