# === AUTH0 IDENTITY ANALYSIS 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 (export, analyze)

.PHONY: help all

# === SHARED VARIABLES === #
# These are used across all sub-makefiles

OUTPUT_DIR = output

# === HELP === #

help: ## Show this help message
	@echo "Auth0 Identity Analysis - Available Commands"
	@echo ""
	@echo "Data Pipeline:"
	@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' makefiles/pipeline.mk | \
		awk 'BEGIN {FS = ":.*?## "}; {printf "  %-35s %s\n", $$1, $$2}'
	@echo ""
	@echo "Setup & Development:"
	@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' makefiles/dev.mk | \
		awk 'BEGIN {FS = ":.*?## "}; {printf "  %-35s %s\n", $$1, $$2}'

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

include makefiles/pipeline.mk
include makefiles/dev.mk

# === DEFAULT TARGET === #

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