Adding a new parent Makefile
[aaf/sms.git] / sms-service / src / smsquorum / Makefile
1 GOPATH := $(shell realpath "$(PWD)/../../")\r
2 BINARY := quorumclient\r
3 PLATFORM := linux\r
4 \r
5 export GOPATH ...\r
6 \r
7 all: test build\r
8 deploy: test build\r
9 \r
10 build: format\r
11         CGO_ENABLED=0 GOOS=$(PLATFORM) go build -a \\r
12         -ldflags '-extldflags "-static"' \\r
13         -o $(GOPATH)/target/$(BINARY) -v quorumclient.go\r
14 \r
15 clean:\r
16         go clean\r
17         rm -f $(GOPATH)/target/$(BINARY)\r
18 \r
19 test:\r
20         @echo "Yet to Implement"\r
21 \r
22 format:\r
23         go fmt ./...\r
24 \r
25 .PHONY: test\r