summaryrefslogtreecommitdiffstats
path: root/sms-quorum/src/smsquorum/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sms-quorum/src/smsquorum/Makefile')
-rw-r--r--sms-quorum/src/smsquorum/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/sms-quorum/src/smsquorum/Makefile b/sms-quorum/src/smsquorum/Makefile
new file mode 100644
index 0000000..d264de9
--- /dev/null
+++ b/sms-quorum/src/smsquorum/Makefile
@@ -0,0 +1,25 @@
+GOPATH := $(shell realpath "$(PWD)/../../")
+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