# THE TESTAMENT — Build System
# Usage: make all | make pdf | make epub | make html | make md | make clean
#
# Recommended: make unified  (single script, all formats + manifest)

.PHONY: all unified pdf epub html md clean check

# Unified pipeline (compile_all.py) — builds everything + manifest
unified:
	python3 compile_all.py

# Legacy targets (build/build.py)
all: md epub html

md:
	python3 build/build.py --md

epub: md
	python3 build/build.py --epub

pdf: md
	python3 build/build.py --pdf

html: md
	python3 build/build.py --html

clean:
	rm -f testament-complete.md
	rm -f build/output/*.epub build/output/*.pdf
	rm -f testament.epub testament.html testament.pdf
	rm -f build-manifest.json
	rm -f website/chapters.json

check:
	python3 compile_all.py --check
