blob: 5b7d97934742a143b68c672b48998df2aeb93c12 (
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
26
|
GOPATH := $(shell realpath "$(PWD)/../../")
BINARY=dkv
DEPENDENCIES := github.com/golang/dep/cmd/dep
export GOPATH ...
all: build test
deploy: build test
build: deps format
echo $(GOPATH)
$(GOPATH)/bin/dep ensure
go build -o $(GOPATH)/target/$(BINARY) -v main.go
clean:
go clean
rm -f $(GOPATH)/target/$(BINARY)
test:
go test -v ./api/...
format:
go fmt ./api/...
deps:
go get -u $(DEPENDENCIES)
|