summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sms-service/src/sms/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/sms-service/src/sms/Makefile b/sms-service/src/sms/Makefile
new file mode 100644
index 0000000..a206c55
--- /dev/null
+++ b/sms-service/src/sms/Makefile
@@ -0,0 +1,25 @@
+GOPATH := $(shell realpath "$(PWD)/../../")
+BINARY := sms
+DEPENDENCIES := github.com/golang/dep/cmd/dep
+
+export GOPATH ...
+
+all: build test
+deploy: build test
+
+build: deps format
+ $(GOPATH)/bin/dep ensure
+ go build -o $(GOPATH)/target/$(BINARY) -v sms.go
+
+clean:
+ go clean
+ rm -f $(GOPATH)/target/$(BINARY)
+
+test:
+ go test -v ./...
+
+format:
+ go fmt ./...
+
+deps:
+ go get -u $(DEPENDENCIES) \ No newline at end of file