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.9 KiB

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