tendermint/Makefile

47 lines
1.6 KiB
Makefile
Raw Normal View History

2015-03-16 03:51:24 -07:00
.PHONY: get_deps build all list_deps
2014-12-28 16:26:53 -08:00
all: build
2015-03-16 03:51:24 -07:00
build: get_deps
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
2014-12-28 16:26:53 -08:00
no_get:
go build -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
go build -o build/barak github.com/tendermint/tendermint/cmd/barak
go build -o build/debora github.com/tendermint/tendermint/cmd/debora
2015-03-16 03:51:24 -07:00
build_race: get_deps
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
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 hoge.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-03-18 01:02:04 -07:00
tendermint_root/priv_validator.json: tendermint_root/priv_validator.json.orig
cp $< $@
economy: tendermint_root/priv_validator.json
docker run -v $(CURDIR)/tendermint_root:/tendermint_root -p 46656:46656 tendermint
2015-03-18 01:02:04 -07:00
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