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.

44 lines
1.3 KiB

9 years ago
9 years ago
  1. .PHONY: get_deps build all list_deps install
  2. all: test install
  3. TMROOT = $${TMROOT:-$$HOME/.tendermint}
  4. define NEWLINE
  5. endef
  6. install: get_deps
  7. go install github.com/tendermint/tendermint/cmd/tendermint
  8. build:
  9. go build -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
  10. build_race:
  11. go build -race -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
  12. test: build
  13. -rm -rf ~/.tendermint_test_bak
  14. -mv ~/.tendermint_test ~/.tendermint_test_bak && true
  15. go test github.com/tendermint/tendermint/...
  16. test_novendor: build
  17. -rm -rf ~/.tendermint_test_bak
  18. -mv ~/.tendermint_test ~/.tendermint_test_bak && true
  19. go test $$(glide novendor)
  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/... | sort | uniq | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
  26. get_deps:
  27. go get -d github.com/tendermint/tendermint/...
  28. go list -f '{{join .TestImports "\n"}}' github.com/tendermint/tendermint/... | sort | uniq | xargs go get
  29. revision:
  30. -echo `git rev-parse --verify HEAD` > $(TMROOT)/revision
  31. -echo `git rev-parse --verify HEAD` >> $(TMROOT)/revision_history