diff options
Diffstat (limited to 'sms-service/src/preload/Makefile')
-rw-r--r-- | sms-service/src/preload/Makefile | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sms-service/src/preload/Makefile b/sms-service/src/preload/Makefile index c236049..12a9efd 100644 --- a/sms-service/src/preload/Makefile +++ b/sms-service/src/preload/Makefile @@ -1,14 +1,14 @@ GOPATH := $(shell realpath "$(CURDIR)/../../")
BINARY := preload
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 $(BINARY).go
@@ -23,8 +23,4 @@ test: format:
go fmt ./...
-deps:
- go get -u $(DEPENDENCIES)
- $(GOPATH)/bin/dep ensure
-
.PHONY: test
|