2015-06-25 18:42:17 -07:00
|
|
|
.PHONY: get_deps build all list_deps install
|
2015-03-16 03:51:24 -07:00
|
|
|
|
2015-06-25 18:42:17 -07:00
|
|
|
all: install
|
|
|
|
|
2015-07-13 11:49:09 -07:00
|
|
|
TMROOT = $${TMROOT:-$$HOME/.tendermint}
|
|
|
|
|
2015-06-25 18:42:17 -07:00
|
|
|
install:
|
|
|
|
go install github.com/tendermint/tendermint/cmd/tendermint
|
|
|
|
go install github.com/tendermint/tendermint/cmd/barak
|
|
|
|
go install github.com/tendermint/tendermint/cmd/debora
|
2015-07-08 13:07:05 -07:00
|
|
|
go install github.com/tendermint/tendermint/cmd/stdinwriter
|
2015-07-09 18:23:55 -07:00
|
|
|
go install github.com/tendermint/tendermint/cmd/logjack
|
2015-08-04 13:15:10 -07:00
|
|
|
go install github.com/tendermint/tendermint/cmd/sim_txs
|
2014-12-28 16:26:53 -08:00
|
|
|
|
2015-06-10 12:06:28 -04:00
|
|
|
build:
|
2015-04-08 14:31:20 -07:00
|
|
|
go build -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
|
2015-04-14 01:14:55 -07:00
|
|
|
go build -o build/barak github.com/tendermint/tendermint/cmd/barak
|
2015-04-14 04:14:18 -07:00
|
|
|
go build -o build/debora github.com/tendermint/tendermint/cmd/debora
|
2015-07-08 13:07:05 -07:00
|
|
|
go build -o build/stdinwriter github.com/tendermint/tendermint/cmd/stdinwriter
|
2015-07-09 18:23:55 -07:00
|
|
|
go build -o build/logjack github.com/tendermint/tendermint/cmd/logjack
|
2015-08-04 13:15:10 -07:00
|
|
|
go build -o build/sim_txs github.com/tendermint/tendermint/cmd/sim_txs
|
2015-04-21 19:51:23 -07:00
|
|
|
|
2015-06-10 12:06:28 -04:00
|
|
|
build_race:
|
2015-04-08 14:31:20 -07:00
|
|
|
go build -race -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
|
2015-04-14 01:14:55 -07:00
|
|
|
go build -race -o build/barak github.com/tendermint/tendermint/cmd/barak
|
2015-04-14 04:14:18 -07:00
|
|
|
go build -race -o build/debora github.com/tendermint/tendermint/cmd/debora
|
2015-07-08 13:07:05 -07:00
|
|
|
go build -race -o build/stdinwriter github.com/tendermint/tendermint/cmd/stdinwriter
|
2015-07-09 18:23:55 -07:00
|
|
|
go build -race -o build/logjack github.com/tendermint/tendermint/cmd/logjack
|
2015-08-04 13:15:10 -07:00
|
|
|
go build -race -o build/sim_txs github.com/tendermint/tendermint/cmd/sim_txs
|
2014-12-28 17:10:03 -08:00
|
|
|
|
2015-03-16 03:51:24 -07:00
|
|
|
test: build
|
2015-07-18 17:19:47 -07:00
|
|
|
-rm -rf ~/.tendermint_test_bak
|
2015-07-22 06:16:54 -07:00
|
|
|
-mv ~/.tendermint_test ~/.tendermint_test_bak && true
|
2015-04-01 17:30:16 -07:00
|
|
|
go test github.com/tendermint/tendermint/...
|
2014-12-28 16:26:53 -08:00
|
|
|
|
2015-05-16 14:41:36 -07:00
|
|
|
draw_deps:
|
|
|
|
# requires brew install graphviz
|
|
|
|
go get github.com/hirokidaichi/goviz
|
2015-07-07 14:26:05 -07:00
|
|
|
goviz -i github.com/tendermint/tendermint/cmd/tendermint | dot -Tpng -o huge.png
|
2015-05-16 14:41:36 -07:00
|
|
|
|
2014-12-28 16:26:53 -08:00
|
|
|
list_deps:
|
2015-04-01 17:30:16 -07:00
|
|
|
go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint/... | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
|
2014-12-28 16:26:53 -08:00
|
|
|
|
|
|
|
get_deps:
|
2015-04-01 17:30:16 -07:00
|
|
|
go get github.com/tendermint/tendermint/...
|
2015-03-16 03:51:24 -07:00
|
|
|
|
2015-05-15 08:59:39 -07:00
|
|
|
gen_client:
|
|
|
|
go get -u github.com/ebuchman/go-rpc-gen
|
|
|
|
go install github.com/ebuchman/go-rpc-gen
|
|
|
|
go generate rpc/core_client/*.go
|
|
|
|
|
2015-07-10 15:50:58 +00:00
|
|
|
revision:
|
2015-08-14 10:59:42 -07:00
|
|
|
-echo `git rev-parse --verify HEAD` >> $(TMROOT)/revisions
|