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