You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.6 KiB

  1. .PHONY: get_deps build all list_deps
  2. all: build
  3. build: get_deps
  4. go build -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
  5. go build -o build/barak github.com/tendermint/tendermint/cmd/barak
  6. go build -o build/debora github.com/tendermint/tendermint/cmd/debora
  7. no_get:
  8. go build -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
  9. go build -o build/barak github.com/tendermint/tendermint/cmd/barak
  10. go build -o build/debora github.com/tendermint/tendermint/cmd/debora
  11. build_race: get_deps
  12. go build -race -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
  13. go build -race -o build/barak github.com/tendermint/tendermint/cmd/barak
  14. go build -race -o build/debora github.com/tendermint/tendermint/cmd/debora
  15. test: build
  16. go test github.com/tendermint/tendermint/...
  17. draw_deps:
  18. # requires brew install graphviz
  19. go get github.com/hirokidaichi/goviz
  20. goviz -i github.com/tendermint/tendermint/cmd/tendermint | dot -Tpng -o hoge.png
  21. list_deps:
  22. go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint/... | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
  23. get_deps:
  24. go get github.com/tendermint/tendermint/...
  25. gen_client:
  26. go get -u github.com/ebuchman/go-rpc-gen
  27. go install github.com/ebuchman/go-rpc-gen
  28. go generate rpc/core_client/*.go
  29. tendermint_root/priv_validator.json: tendermint_root/priv_validator.json.orig
  30. cp $< $@
  31. economy: tendermint_root/priv_validator.json
  32. docker run -v $(CURDIR)/tendermint_root:/tendermint_root -p 46656:46656 tendermint
  33. clean:
  34. rm -f tendermint tendermint_root/priv_validator.json