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.

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