forked from packethost/pkg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (18 loc) · 792 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
help: ## Print this help
@grep --no-filename -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sed 's/:.*##/·/' | sort | column -ts '·' -c 120
all: example ## Build example binary
-include lint.mk
-include rules.mk
test: ## Run tests
go test ./...
coverage: ## Generate coverage report
CGO_ENABLED=1 go test -race -coverprofile=coverage.txt -covermode=atomic ./...
# Enable this later
#verify: gofumpt prettier lint # # Verify code style, is lint free, freshness ...
verify: goimports lint ## Verify code style, is lint free, freshness ...
git diff | (! grep .)
# Enable this later
#fix: gofumpt-fix prettier-fix ## Fix code formatting errors
tools: ${toolsBins} ## Build Go based build tools
run: run-example ## Run examplelog
.PHONY: all coverage help run test tools verify