tendermint/Makefile

54 lines
1.9 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
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
2015-07-10 08:50:58 -07:00
echo -n `git rev-parse --verify HEAD` > .revision
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
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
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
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:
echo -n `git rev-parse --verify HEAD` > .revision
2015-03-18 01:02:04 -07:00
tendermint_root/priv_validator.json: tendermint_root/priv_validator.json.orig
cp $< $@
2015-03-16 03:51:24 -07:00
clean:
2015-03-18 01:02:04 -07:00
rm -f tendermint tendermint_root/priv_validator.json