# Makefile for Daily Notification Plugin
#
# Primary targets:
#   make ci        - Run local CI (./ci/run.sh)
#   make verify    - Run verification script directly
#   make build     - Build the project
#   make test      - Run tests
#   make clean     - Clean build artifacts
#
# CI is the single source of truth - always gate releases with: make ci

.PHONY: ci verify build test clean help

# Default target
help:
	@echo "Daily Notification Plugin - Makefile"
	@echo ""
	@echo "Targets:"
	@echo "  make ci        - Run local CI (./ci/run.sh) - REQUIRED before publish"
	@echo "  make verify    - Run verification script directly (./scripts/verify.sh)"
	@echo "  make build     - Build the project (npm run build)"
	@echo "  make test      - Run tests (npm test)"
	@echo "  make clean     - Clean build artifacts (npm run clean)"
	@echo ""
	@echo "CI Policy: ./ci/run.sh is the single source of truth for verification"
	@echo "Always run 'make ci' before publishing or merging PRs"

# Local CI - single source of truth
ci:
	@echo "Running local CI..."
	./ci/run.sh

# Direct verification (bypasses CI wrapper)
verify:
	./scripts/verify.sh

# Build
build:
	npm run build

# Test
test:
	npm test

# Clean
clean:
	npm run clean

