github.com/thediveo/gons@v0.9.9/Makefile (about)

     1  .PHONY: help chores clean coverage pkgsite report test vuln
     2  
     3  help: ## list available targets
     4  	@# Shamelessly stolen from Gomega's Makefile
     5  	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'
     6  
     7  clean: ## cleans up build and testing artefacts
     8  	rm -f coverage.html coverage.out coverage.txt
     9  
    10  coverage: ## gathers coverage and updates README badge
    11  	@scripts/cov.sh
    12  
    13  pkgsite: ## serves Go documentation on port 6060
    14  	@echo "navigate to: http://localhost:6060/github.com/thediveo/gons"
    15  	@scripts/pkgsite.sh
    16  
    17  report: ## runs goreportcard on this module
    18  	@scripts/goreportcard.sh
    19  
    20  test: ## runs unit tests
    21  	go test -v -p=1 -count=1 -race ./...
    22  
    23  vuln: ## runs govulncheck
    24  	@scripts/vuln.sh
    25  
    26  chores: ## updates Go binaries and NPM helper packages if necessary
    27  	@scripts/chores.sh