summaryrefslogtreecommitdiffstats
path: root/sms-service/src/quorumclient/Makefile
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2018-04-05 11:54:20 -0700
committerKiran Kamineni <kiran.k.kamineni@intel.com>2018-04-05 12:40:56 -0700
commitc4150670d35e36457ff5f793accae615627e55c8 (patch)
treed1fbc3c5e20d48c4e11038e31a226c79650272df /sms-service/src/quorumclient/Makefile
parent978daf3d407d1d7991946d97dbb48011e7b4f6bc (diff)
renaming folder to match go executable
Renaming folder from smsquorum to quorumclient Added quorumclient build as part of the makefile Will upload another patch in ci-management that will call the new parent makefile Issue-ID: AAF-213 Change-Id: Ib85ac6b9dc454fc1447cf2221a555d7a7552efa5 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'sms-service/src/quorumclient/Makefile')
-rw-r--r--sms-service/src/quorumclient/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/sms-service/src/quorumclient/Makefile b/sms-service/src/quorumclient/Makefile
new file mode 100644
index 0000000..720be29
--- /dev/null
+++ b/sms-service/src/quorumclient/Makefile
@@ -0,0 +1,25 @@
+GOPATH := $(shell realpath "$(CURDIR)/../../")
+BINARY := quorumclient
+PLATFORM := linux
+
+export GOPATH ...
+
+all: test build
+deploy: test build
+
+build: format
+ CGO_ENABLED=0 GOOS=$(PLATFORM) go build -a \
+ -ldflags '-extldflags "-static"' \
+ -o $(GOPATH)/target/$(BINARY) -v quorumclient.go
+
+clean:
+ go clean
+ rm -f $(GOPATH)/target/$(BINARY)
+
+test:
+ @echo "Yet to Implement"
+
+format:
+ go fmt ./...
+
+.PHONY: test