Fork from gihub.com/denkhaus/bitshares library to interface prosume-ecp with goprosume wrapper

Makefile 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. clean_ffjson_base:
  2. @rm -rf types/ffjson-inception* ||:
  3. @rm -f types/*_ffjson_expose.go ||:
  4. @rm -rf operations/ffjson-inception* ||:
  5. @rm -f operations/*_ffjson_expose.go ||:
  6. clean_ffjson_gen:
  7. @rm -f types/*_ffjson.go ||:
  8. @rm -rf operations/*_ffjson.go ||:
  9. generate: clean_ffjson_base
  10. -go generate ./...
  11. generate_new: clean_ffjson_base clean_ffjson_gen
  12. -go generate ./...
  13. init:
  14. @echo "######################## -> install dependencies"
  15. @go get -u golang.org/x/tools/cmd/stringer
  16. @go get -u github.com/mitchellh/reflectwalk
  17. @go get -u github.com/stretchr/objx
  18. @go get -u github.com/cespare/reflex
  19. @go get -u github.com/bradhe/stopwatch
  20. test_api:
  21. go test -v ./tests -run ^TestCommon$
  22. go test -v ./tests -run ^TestSubscribe$
  23. go test -v ./tests -run ^TestWalletAPI$
  24. go test -v ./tests -run ^TestWebsocketAPI$
  25. go test -v ./types
  26. test_operations:
  27. go test -v ./operations -run ^TestOperations$
  28. test_blocks:
  29. @echo "this is a long running test, abort with Ctrl + C"
  30. go test -v ./tests -timeout 10m -run ^TestBlockRange$
  31. buildgen:
  32. @echo "build btsgen"
  33. @go get -u -d ./gen
  34. @go build -o /tmp/btsgen ./gen
  35. @cp /tmp/btsgen $(GOPATH)/bin
  36. opsamples: buildgen
  37. @echo "exec btsgen"
  38. @cd gen && btsgen
  39. build: generate
  40. go build -o /tmp/go-tmpbuild ./operations
  41. watch:
  42. reflex -g 'operations/*.go' make test_operations