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.

34 lines
1008 B

9 years ago
9 years ago
  1. .PHONY: get_deps build all list_deps install
  2. all: install
  3. TMROOT = $${TMROOT:-$$HOME/.tendermint}
  4. install:
  5. go install github.com/tendermint/tendermint/cmd/tendermint
  6. build:
  7. go build -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
  8. build_race:
  9. go build -race -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
  10. test: build
  11. -rm -rf ~/.tendermint_test_bak
  12. -mv ~/.tendermint_test ~/.tendermint_test_bak && true
  13. go test github.com/tendermint/tendermint/...
  14. draw_deps:
  15. # requires brew install graphviz
  16. go get github.com/hirokidaichi/goviz
  17. goviz -i github.com/tendermint/tendermint/cmd/tendermint | dot -Tpng -o huge.png
  18. list_deps:
  19. go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint/... | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
  20. get_deps:
  21. go get github.com/tendermint/tendermint/...
  22. revision:
  23. -echo `git rev-parse --verify HEAD` > $(TMROOT)/revision
  24. -echo `git rev-parse --verify HEAD` >> $(TMROOT)/revision_history