# === SCHEMA AUDIT MAKEFILE === #
# Main Makefile for project management
#
# Project Structure:
# - makefiles/dev.mk - Installation, setup, code quality (fmt, lint, type-check)
# - makefiles/scripts.mk - Script execution commands (audit, field-usage)

.PHONY: help all

# === HELP === #

help: ## Show this help message
	@echo "Schema Audit - Available Commands"
	@echo ""
	@echo "Scripts:"
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' makefiles/scripts.mk | \
		awk 'BEGIN {FS = ":.*?## "}; {printf "  %-30s %s\n", $$1, $$2}'
	@echo ""
	@echo "Setup & Development:"
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' makefiles/dev.mk | \
		awk 'BEGIN {FS = ":.*?## "}; {printf "  %-30s %s\n", $$1, $$2}'

# === INCLUDE SUB-MAKEFILES === #

include makefiles/scripts.mk
include makefiles/dev.mk

# === DEFAULT TARGET === #

all: install-dev format lint type-check ## Install dependencies, format, lint, and type-check
