github.com/jxskiss/gopkg/v2@v2.14.9-0.20240514120614-899f3e7952b4/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 && go test ./internal/linkname 8 9 test_forceexport: 10 go test -gcflags="all=-l -N" ./unsafe/forceexport 11 12 test_coverage: 13 mkdir -p _output/ 14 go test -count=1 -cover -coverprofile=_output/coverprofile.out ./... && go tool cover -html _output/coverprofile.out 15 16 test_examples: 17 cd _examples && go test ./... 18 19 test_snippets: 20 cd _snippets && go test ./...