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.

48 lines
1.3 KiB

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. test100: build
  16. for i in {1..100}; do make test; done
  17. draw_deps:
  18. # requires brew install graphviz
  19. go get github.com/hirokidaichi/goviz
  20. goviz -i github.com/tendermint/tendermint/cmd/tendermint | dot -Tpng -o huge.png
  21. list_deps:
  22. go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint/... | \
  23. grep -v /vendor/ | sort | uniq | \
  24. xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
  25. get_deps:
  26. go get -d `${NOVENDOR}`
  27. go list -f '{{join .TestImports "\n"}}' github.com/tendermint/tendermint/... | \
  28. grep -v /vendor/ | sort | uniq | \
  29. xargs go get
  30. update_deps:
  31. go get -d -u github.com/tendermint/tendermint/...
  32. revision:
  33. -echo `git rev-parse --verify HEAD` > $(TMROOT)/revision
  34. -echo `git rev-parse --verify HEAD` >> $(TMROOT)/revision_history