Debian Codegraph @

Makefile

raw
1 .PHONY: help clean coverage report test
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.*
9
10 test: ## run unit tests
11 go test -v -p=1 -race ./...
12
13 report: ## run goreportcard-cli on this module
14 # from ghcr.io/thediveo/devcontainer-features/goreportcard
15 goreportcard-cli -v ./..
16
17 coverage: ## gathers coverage and updates README badge
18 # from ghcr.io/thediveo/devcontainer-features/gocover
19 gocover