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.

52 lines
1.9 KiB

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. 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. build:
  10. go build -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
  11. go build -o build/barak github.com/tendermint/tendermint/cmd/barak
  12. go build -o build/debora github.com/tendermint/tendermint/cmd/debora
  13. go build -o build/stdinwriter github.com/tendermint/tendermint/cmd/stdinwriter
  14. go build -o build/logjack github.com/tendermint/tendermint/cmd/logjack
  15. build_race:
  16. go build -race -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
  17. go build -race -o build/barak github.com/tendermint/tendermint/cmd/barak
  18. go build -race -o build/debora github.com/tendermint/tendermint/cmd/debora
  19. go build -race -o build/stdinwriter github.com/tendermint/tendermint/cmd/stdinwriter
  20. go build -race -o build/logjack github.com/tendermint/tendermint/cmd/logjack
  21. test: build
  22. go test github.com/tendermint/tendermint/...
  23. draw_deps:
  24. # requires brew install graphviz
  25. go get github.com/hirokidaichi/goviz
  26. goviz -i github.com/tendermint/tendermint/cmd/tendermint | dot -Tpng -o huge.png
  27. list_deps:
  28. go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint/... | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
  29. get_deps:
  30. go get github.com/tendermint/tendermint/...
  31. gen_client:
  32. go get -u github.com/ebuchman/go-rpc-gen
  33. go install github.com/ebuchman/go-rpc-gen
  34. go generate rpc/core_client/*.go
  35. tendermint_root/priv_validator.json: tendermint_root/priv_validator.json.orig
  36. cp $< $@
  37. economy: tendermint_root/priv_validator.json
  38. docker run -v $(CURDIR)/tendermint_root:/tendermint_root -p 46656:46656 tendermint
  39. clean:
  40. rm -f tendermint tendermint_root/priv_validator.json