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.

51 lines
1.7 KiB

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