github.com/jxskiss/gopkg@v0.17.3/Makefile (about) 1 # .PHONY 2 3 list: 4 @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' 5 6 test_linkname: 7 go clean -testcache ./internal/linkname && go test ./internal/linkname 8 9 test_forceexport: 10 go test -gcflags=all=-l ./forceexport 11 12 test_json: 13 go test ./json 14 go test --tags gojson ./json 15 go test --tags jsoniter ./json 16 17 test_coverage: 18 mkdir -p _output/ 19 go test -count=1 -cover -coverprofile=_output/coverprofile.out ./... && go tool cover -html _output/coverprofile.out