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
1.9 KiB

9 years ago
9 years ago
  1. .PHONY: get_deps build all list_deps install
  2. all: install
  3. install:
  4. go install github.com/tendermint/tendermint/cmd/tendermint
  5. go install github.com/tendermint/tendermint/cmd/barak
  6. go install github.com/tendermint/tendermint/cmd/debora
  7. go install github.com/tendermint/tendermint/cmd/stdinwriter
  8. go install github.com/tendermint/tendermint/cmd/logjack
  9. echo -n `git rev-parse --verify HEAD` > .revision
  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. go test github.com/tendermint/tendermint/...
  24. draw_deps:
  25. # requires brew install graphviz
  26. go get github.com/hirokidaichi/goviz
  27. goviz -i github.com/tendermint/tendermint/cmd/tendermint | dot -Tpng -o huge.png
  28. list_deps:
  29. go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint/... | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
  30. get_deps:
  31. go get github.com/tendermint/tendermint/...
  32. gen_client:
  33. go get -u github.com/ebuchman/go-rpc-gen
  34. go install github.com/ebuchman/go-rpc-gen
  35. go generate rpc/core_client/*.go
  36. revision:
  37. echo -n `git rev-parse --verify HEAD` > .revision
  38. tendermint_root/priv_validator.json: tendermint_root/priv_validator.json.orig
  39. cp $< $@
  40. clean:
  41. rm -f tendermint tendermint_root/priv_validator.json