# Makefile for Marp Slides Project

.PHONY: help build dev watch pdf html clean install

# Default target
help:
	@echo "Available commands:"
	@echo "  make build    - Build slides from Markdown"
	@echo "  make dev      - Start development server with live reload"
	@echo "  make watch    - Watch for changes and rebuild automatically"
	@echo "  make pdf      - Export slides to PDF format"
	@echo "  make html     - Export slides to HTML format"
	@echo "  make clean    - Remove generated files"
	@echo "  make install  - Install dependencies"

# Build slides
build:
	@echo "Building slides..."
	npm run build

# Start development server
dev:
	@echo "Starting development server..."
	npm run dev

# Watch for changes
watch:
	@echo "Watching for changes..."
	npm run watch

# Export to PDF
pdf:
	@echo "Exporting to PDF..."
	npm run export:pdf

# Export to HTML
html:
	@echo "Exporting to HTML..."
	npm run export:html

# Clean generated files
clean:
	@echo "Cleaning generated files..."
	rm -rf dist/ build/ *.pdf *.html

# Install dependencies
install:
	@echo "Installing dependencies..."
	npm install