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.

54 lines
2.1 KiB

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. go install github.com/tendermint/tendermint/cmd/barak
  7. go install github.com/tendermint/tendermint/cmd/debora
  8. go install github.com/tendermint/tendermint/cmd/stdinwriter
  9. go install github.com/tendermint/tendermint/cmd/logjack
  10. go install github.com/tendermint/tendermint/cmd/sim_txs
  11. @echo `git rev-parse --verify HEAD` >> $(TMROOT)/revisions
  12. build:
  13. go build -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
  14. go build -o build/barak github.com/tendermint/tendermint/cmd/barak
  15. go build -o build/debora github.com/tendermint/tendermint/cmd/debora
  16. go build -o build/stdinwriter github.com/tendermint/tendermint/cmd/stdinwriter
  17. go build -o build/logjack github.com/tendermint/tendermint/cmd/logjack
  18. go build -o build/sim_txs github.com/tendermint/tendermint/cmd/sim_txs
  19. build_race:
  20. go build -race -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
  21. go build -race -o build/barak github.com/tendermint/tendermint/cmd/barak
  22. go build -race -o build/debora github.com/tendermint/tendermint/cmd/debora
  23. go build -race -o build/stdinwriter github.com/tendermint/tendermint/cmd/stdinwriter
  24. go build -race -o build/logjack github.com/tendermint/tendermint/cmd/logjack
  25. go build -race -o build/sim_txs github.com/tendermint/tendermint/cmd/sim_txs
  26. test: build
  27. -rm -rf ~/.tendermint_test_bak
  28. -mv ~/.tendermint_test ~/.tendermint_test_bak && true
  29. go test github.com/tendermint/tendermint/...
  30. draw_deps:
  31. # requires brew install graphviz
  32. go get github.com/hirokidaichi/goviz
  33. goviz -i github.com/tendermint/tendermint/cmd/tendermint | dot -Tpng -o huge.png
  34. list_deps:
  35. go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint/... | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
  36. get_deps:
  37. go get github.com/tendermint/tendermint/...
  38. gen_client:
  39. go get -u github.com/ebuchman/go-rpc-gen
  40. go install github.com/ebuchman/go-rpc-gen
  41. go generate rpc/core_client/*.go
  42. revision:
  43. @echo `git rev-parse --verify HEAD` >> $(TMROOT)/revisions