-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 810 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 810 Bytes
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
.PHONY: help install lint clean
.DEFAULT_GOAL := help
# Help
help: ## Show this help message
@echo "Available targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
# Installation
install: ## Install yamllint
@echo "Installing yamllint..."
@pip install yamllint
@echo "✓ yamllint installed"
# Linting
lint: install ## Lint YAML files
@echo "Linting YAML files..."
@yamllint -c .github/linters/.yaml-lint.yml .github/workflows/ workflow-templates/
@echo "✓ Linting complete"
# Cleanup
clean: ## Clean temporary files
@echo "Cleaning temporary files..."
@find . -type f -name "*~" -delete 2>/dev/null || true
@find . -type f -name "*.bak" -delete 2>/dev/null || true
@echo "✓ Cleanup complete"