tendermint/Makefile

54 lines
2.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
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
go install github.com/tendermint/tendermint/cmd/logjack
go install github.com/tendermint/tendermint/cmd/sim_txs
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-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
go build -o build/logjack github.com/tendermint/tendermint/cmd/logjack
go build -o build/sim_txs github.com/tendermint/tendermint/cmd/sim_txs
2015-06-10 09:06:28 -07:00
build_race:
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
go build -race -o build/logjack github.com/tendermint/tendermint/cmd/logjack
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
-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
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:
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 08:50:58 -07:00
revision:
2015-08-14 10:59:42 -07:00
-echo `git rev-parse --verify HEAD` >> $(TMROOT)/revisions