Makefile 413 B

12345678910111213141516171819202122232425262728
  1. .DEFAULT_GOAL := all
  2. .DELETE_ON_ERROR:
  3. .SUFFIXES:
  4. .PHONY: all
  5. all: deps fmt gen-json test
  6. .PHONY: deps
  7. deps:
  8. -@echo "-> $@"
  9. go mod tidy
  10. .PHONY: fmt
  11. fmt:
  12. -@echo "-> $@"
  13. -go fmt $(shell go list ./...)
  14. .PHONY: gen-json
  15. gen-json:
  16. -@echo "-> $@"
  17. -@echo "=== Generating easyJson bindings"
  18. easyjson result.go
  19. .PHONY: test
  20. test:
  21. -@echo "-> $@"
  22. go test $(shell go list ./...)
  23. -go vet $(shell go list ./...)