12345678910111213141516171819202122232425262728 |
- .DEFAULT_GOAL := all
- .DELETE_ON_ERROR:
- .SUFFIXES:
- .PHONY: all
- all: deps fmt gen-json test
- .PHONY: deps
- deps:
- -@echo "-> $@"
- go mod tidy
- .PHONY: fmt
- fmt:
- -@echo "-> $@"
- -go fmt $(shell go list ./...)
- .PHONY: gen-json
- gen-json:
- -@echo "-> $@"
- -@echo "=== Generating easyJson bindings"
- easyjson result.go
- .PHONY: test
- test:
- -@echo "-> $@"
- go test $(shell go list ./...)
- -go vet $(shell go list ./...)
|