-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
16 lines (12 loc) · 804 Bytes
/
Makefile
File metadata and controls
16 lines (12 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.PHONY: help install check lint
help: ## Show available targets
@grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*##"}; {printf " make %-10s %s\n", $$1, $$2}'
install: ## Run the full Ansible playbook
@command -v ansible-playbook >/dev/null || { echo "ansible not found. Install with: sudo apt install ansible" >&2; exit 1; }
ansible-playbook ansible/main.yml
check: ## Dry-run the Ansible playbook (no changes)
@command -v ansible-playbook >/dev/null || { echo "ansible not found. Install with: sudo apt install ansible" >&2; exit 1; }
ansible-playbook ansible/main.yml --check
lint: ## Run shellcheck on all shell scripts
@command -v shellcheck >/dev/null || { echo "shellcheck not found. Install with: sudo apt install shellcheck" >&2; exit 1; }
shellcheck scripts/*.sh