2 github.com/mitchellh/gox \
3 github.com/Masterminds/glide \
4 github.com/alecthomas/gometalinter
6 all: protoc install test
8 NOVENDOR = go list github.com/tendermint/abci/... | grep -v /vendor/
11 # Download: https://github.com/google/protobuf/releases
12 go get github.com/golang/protobuf/protoc-gen-go
15 @ protoc --go_out=plugins=grpc:. types/*.proto
18 @ go install github.com/tendermint/abci/cmd/...
21 @ go build -i github.com/tendermint/abci/cmd/...
24 @ bash scripts/dist.sh
25 @ bash scripts/publish.sh
27 # test.sh requires that we run the installed cmds, must not be out of date
29 find . -path ./vendor -prune -o -name *.sock -exec rm {} \;
30 @ go test -p 1 `${NOVENDOR}`
36 test_integrations: get_vendor_deps install test
39 @ go get -d `${NOVENDOR}`
42 go get -u -v $(GOTOOLS)
45 @ go get github.com/Masterminds/glide
49 @gometalinter --install
50 gometalinter --vendor --deadline=600s --enable-all --disable=lll ./...
52 metalinter_test: tools
53 @gometalinter --install
54 gometalinter --vendor --deadline=600s --disable-all \
61 --enable=ineffassign \
64 --enable=staticcheck \
66 --enable=structcheck \
76 #--enable=golint \ <== comments on anything exported
78 #--enable=interfacer \
82 .PHONY: all build test fmt get_deps tools