Files
tendermint/Makefile

37 lines
732 B
Makefile
Raw Normal View History

2017-01-16 22:33:48 -08:00
.PHONY: all build test fmt lint get_deps
2015-12-17 13:46:04 -08:00
all: protoc install test
2016-01-30 19:36:33 -08:00
2017-01-12 15:47:55 -05:00
NOVENDOR = go list github.com/tendermint/abci/... | grep -v /vendor/
2016-11-10 01:12:29 +00:00
2016-01-30 19:36:33 -08:00
protoc:
2017-01-16 21:58:42 -08:00
@ protoc --go_out=plugins=grpc:. types/*.proto
2015-12-17 13:46:04 -08:00
2016-11-10 01:12:29 +00:00
install:
2017-01-16 21:58:42 -08:00
@ go install github.com/tendermint/abci/cmd/...
2015-12-17 13:46:04 -08:00
2017-01-16 22:33:48 -08:00
build:
@ go build -i github.com/tendermint/abci/cmd/...
2015-12-17 13:46:04 -08:00
test:
2017-01-16 21:58:42 -08:00
@ go test `${NOVENDOR}`
@ bash tests/test.sh
fmt:
@ go fmt ./...
lint:
@ go get -u github.com/golang/lint/golint
@ for file in $$(find "." -name '*.go' | grep -v '/vendor/' | grep -v '\.pb\.go'); do \
golint -set_exit_status $${file}; \
done;
2015-12-17 13:46:04 -08:00
2016-11-10 01:12:29 +00:00
test_integrations: get_vendor_deps install test
2015-12-17 13:46:04 -08:00
get_deps:
2017-01-16 21:58:42 -08:00
@ go get -d `${NOVENDOR}`
2016-11-10 01:12:29 +00:00
get_vendor_deps:
2017-01-16 21:58:42 -08:00
@ go get github.com/Masterminds/glide
@ glide install