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.

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