Adding a Makefile to allow easier builds and for jenkins integration
jenkins jjb will call make build, make deploy and so on
Makefile resides along with the main application go file
Issue-ID: AAF-117
Change-Id: Ibf4413a26d5572703bea122d3d0db83f4c35ae88
Signed-off-by: Kiran <kiran.k.kamineni@intel.com>
--- /dev/null
+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