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

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
9 years ago
  1. .PHONY: get_deps build all list_deps install
  2. all: get_deps install test
  3. TMROOT = $${TMROOT:-$$HOME/.tendermint}
  4. define NEWLINE
  5. endef
  6. NOVENDOR = go list github.com/tendermint/tendermint/... | grep -v /vendor/
  7. install: get_deps
  8. go install github.com/tendermint/tendermint/cmd/tendermint
  9. build:
  10. go build -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
  11. build_race:
  12. go build -race -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
  13. test: build
  14. go test `${NOVENDOR}`
  15. test_race: build
  16. go test -race `${NOVENDOR}`
  17. test100: build
  18. for i in {1..100}; do make test; done
  19. draw_deps:
  20. # requires brew install graphviz
  21. go get github.com/hirokidaichi/goviz
  22. goviz -i github.com/tendermint/tendermint/cmd/tendermint | dot -Tpng -o huge.png
  23. list_deps:
  24. go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint/... | \
  25. grep -v /vendor/ | sort | uniq | \
  26. xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
  27. get_deps:
  28. go get -d `${NOVENDOR}`
  29. go list -f '{{join .TestImports "\n"}}' github.com/tendermint/tendermint/... | \
  30. grep -v /vendor/ | sort | uniq | \
  31. xargs go get
  32. update_deps:
  33. go get -d -u github.com/tendermint/tendermint/...
  34. revision:
  35. -echo `git rev-parse --verify HEAD` > $(TMROOT)/revision
  36. -echo `git rev-parse --verify HEAD` >> $(TMROOT)/revision_history