tendermint/Makefile

41 lines
1.1 KiB
Makefile
Raw Normal View History

2015-06-25 18:42:17 -07:00
.PHONY: get_deps build all list_deps install
2015-03-16 03:51:24 -07:00
all: test install
2015-06-25 18:42:17 -07:00
2015-07-13 11:49:09 -07:00
TMROOT = $${TMROOT:-$$HOME/.tendermint}
define NEWLINE
2015-07-13 11:49:09 -07:00
endef
2015-07-13 11:49:09 -07:00
install: get_deps
2015-06-25 18:42:17 -07:00
go install github.com/tendermint/tendermint/cmd/tendermint
2014-12-28 16:26:53 -08:00
2015-06-10 09:06:28 -07:00
build:
go build -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
2015-06-10 09:06:28 -07:00
build_race:
go build -race -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
2014-12-28 17:10:03 -08:00
2015-03-16 03:51:24 -07:00
test: build
2015-04-01 17:30:16 -07:00
go test github.com/tendermint/tendermint/...
2014-12-28 16:26:53 -08:00
test_novendor: build
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
2014-12-28 16:26:53 -08:00
list_deps:
go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint/... | sort | uniq | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
2014-12-28 16:26:53 -08:00
get_deps:
go get -d github.com/tendermint/tendermint/...
go list -f '{{join .TestImports "\n"}}' github.com/tendermint/tendermint/... | sort | uniq | xargs go get
2015-03-16 03:51:24 -07:00
2015-07-10 08:50:58 -07:00
revision:
2015-09-24 12:48:44 -07:00
-echo `git rev-parse --verify HEAD` > $(TMROOT)/revision
-echo `git rev-parse --verify HEAD` >> $(TMROOT)/revision_history