# Cerynix — developer convenience targets.
# Optional: these just delegate to scripts/dev/*.sh. On Windows without `make`,
# call the shell scripts directly from Git Bash (see docs/development.md).

.PHONY: help preflight fix install-hooks

help: ## Show this help
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN{FS=":.*?## "}{printf "  \033[36m%-14s\033[0m %s\n", $$1, $$2}'

preflight: ## Run the commit gate (ruff format+lint + provenance freshness), no writes
	@bash scripts/dev/preflight.sh --check

fix: ## Auto-format + regenerate & stage the provenance manifest
	@bash scripts/dev/preflight.sh --fix

install-hooks: ## Arm the pre-commit guard (sets core.hooksPath -> .githooks)
	@bash scripts/dev/install-hooks.sh
