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.

47 lines
1.0 KiB

  1. .PHONEY: all docs test install get_vendor_deps ensure_tools codegen
  2. GOTOOLS = \
  3. github.com/Masterminds/glide
  4. REPO:=github.com/tendermint/go-crypto
  5. docs:
  6. @go get github.com/davecheney/godoc2md
  7. godoc2md $(REPO) > README.md
  8. all: get_vendor_deps install test
  9. install:
  10. go install ./cmd/keys
  11. test: test_unit test_cli
  12. test_unit:
  13. go test `glide novendor`
  14. #go run tests/tendermint/*.go
  15. test_cli: tests/shunit2
  16. # sudo apt-get install jq
  17. @./tests/keys.sh
  18. tests/shunit2:
  19. wget "https://raw.githubusercontent.com/kward/shunit2/master/source/2.1/src/shunit2" \
  20. -q -O tests/shunit2
  21. get_vendor_deps: ensure_tools
  22. @rm -rf vendor/
  23. @echo "--> Running glide install"
  24. @glide install
  25. ensure_tools:
  26. go get $(GOTOOLS)
  27. prepgen: install
  28. go install ./vendor/github.com/btcsuite/btcutil/base58
  29. go install ./vendor/github.com/stretchr/testify/assert
  30. go install ./vendor/github.com/stretchr/testify/require
  31. go install ./vendor/golang.org/x/crypto/bcrypt
  32. codegen:
  33. @echo "--> regenerating all interface wrappers"
  34. @gen
  35. @echo "Done!"