# platform-profiles — package Makefile (CONVENTIONS.md §11 delegation contract).
# Dual-language leaf package: @demystify/platform-profiles (TS) +
# demystify-platform-profiles (Py). Targets: setup lint test build integration (+ pack).

SHELL := /bin/bash
UV := uv
PNPM := pnpm

.PHONY: setup lint test build integration pack

setup:
	$(PNPM) install --frozen-lockfile || $(PNPM) install
	$(UV) sync --extra dev

lint:
	$(PNPM) run lint
	$(UV) run ruff check .
	$(UV) run ruff format --check .
	$(UV) run mypy src

test:
	$(PNPM) run test
	$(UV) run pytest -q

build:
	$(PNPM) run build
	$(UV) build --out-dir dist-py

pack: build
	npm pack --dry-run
	$(UV) build --out-dir dist-py

integration:
	@echo "platform-profiles: no tier-3 integration (leaf package, no infra)"
