summaryrefslogtreecommitdiffstats
path: root/sms-quorum/src/smsquorum/Makefile
blob: d264de9e52937860689e5eff5d1fa1b293635835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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