-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
20 lines (15 loc) · 745 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONE: lint
lint: ## Lint the code with golangci-lint
docker run --rm -v $$(pwd):/app -w /app golangci/golangci-lint golangci-lint run -v
.PHONY: changelog
changelog: ## Generates a changelog with the template under ./changelog/config.yaml.
go run github.com/aaronfriel/[email protected] create
.PHONY: bump-version
bump-version: ## Bump the .version file to the next version with ./.github/scripts/get-next-version
echo "$$(./.github/scripts/get-next-version)" > .version
.PHONY: help
help: ## Displays the list of targets.
@echo 'usage: make [TARGET]'
@echo 'Targets:'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\t\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help