makefile qol improvements
This commit is contained in:
parent
66b2d67f6d
commit
4ae327fcc8
17
makefile
17
makefile
@ -1,2 +1,17 @@
|
||||
test:
|
||||
##@ General
|
||||
|
||||
# Credit the the Woodpecker-CI team for this awesome help script
|
||||
.PHONY: help
|
||||
help: ## Display this help
|
||||
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
|
||||
|
||||
##@ Test
|
||||
|
||||
.PHONY: lint
|
||||
lint: ## Lint the Ansible role
|
||||
yamllint .
|
||||
ansible-lint
|
||||
|
||||
.PHONY: test
|
||||
test: lint ## Test the Ansible role
|
||||
ansible-playbook test.yaml
|
||||
|
Loading…
x
Reference in New Issue
Block a user