summaryrefslogtreecommitdiffstats
path: root/sms-service
diff options
context:
space:
mode:
Diffstat (limited to 'sms-service')
-rw-r--r--sms-service/src/sms/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/sms-service/src/sms/Makefile b/sms-service/src/sms/Makefile
index 2751fff..25c12e1 100644
--- a/sms-service/src/sms/Makefile
+++ b/sms-service/src/sms/Makefile
@@ -1,5 +1,6 @@
GOPATH := $(shell realpath "$(PWD)/../../")
BINARY := sms
+PLATFORM := linux
DEPENDENCIES := github.com/golang/dep/cmd/dep
export GOPATH ...
@@ -8,7 +9,9 @@ all: test build
deploy: test build
build: deps format
- go build -o $(GOPATH)/target/$(BINARY) -v sms.go
+ CGO_ENABLED=0 GOOS=$(PLATFORM) go build -a \
+ -ldflags '-extldflags "-static"' \
+ -o $(GOPATH)/target/$(BINARY) -v sms.go
clean:
go clean