summaryrefslogtreecommitdiffstats
path: root/sms-service/src/preload/Makefile
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2018-10-23 21:44:52 -0700
committerKiran Kamineni <kiran.k.kamineni@intel.com>2018-10-25 14:49:28 -0700
commitede2e910db50176c9970159cf4f60387d4ee4d93 (patch)
tree4206a57807ba5fd76de1ed03a33393e90c5b20a2 /sms-service/src/preload/Makefile
parent53f7913877d40ccfbd766fbe7a765d2a56e9d32a (diff)
Move to go mod from dep
Go 1.11 introduces a native functionality for package management. This replaces dep which is the tool we were using before. This patch switches SMS to use go mod instead of dep for package management. P2: Add GO111MODULE=on to the makefile Issue-ID: AAF-404 Change-Id: I462d210fbbe71bff1310a50993410ebc7d8f6fa8 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'sms-service/src/preload/Makefile')
-rw-r--r--sms-service/src/preload/Makefile8
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