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

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