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.

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