You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.1 KiB

.PHONY: get_deps build all list_deps install
all: install
TMROOT = $${TMROOT:-$$HOME/.tendermint}
install:
go install github.com/tendermint/tendermint/cmd/tendermint
build:
go build -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
build_race:
go build -race -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
test: build
-rm -rf ~/.tendermint_test_bak
-mv ~/.tendermint_test ~/.tendermint_test_bak && true
go test github.com/tendermint/tendermint/...
test_novendor: build
-rm -rf ~/.tendermint_test_bak
-mv ~/.tendermint_test ~/.tendermint_test_bak && true
go test $$(glide novendor)
draw_deps:
# requires brew install graphviz
go get github.com/hirokidaichi/goviz
goviz -i github.com/tendermint/tendermint/cmd/tendermint | dot -Tpng -o huge.png
list_deps:
go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint/... | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
get_deps:
go get github.com/tendermint/tendermint/...
revision:
-echo `git rev-parse --verify HEAD` > $(TMROOT)/revision
-echo `git rev-parse --verify HEAD` >> $(TMROOT)/revision_history