Files
the-testament/Makefile

29 lines
775 B
Makefile
Raw Normal View History

2026-04-11 01:36:20 +00:00
# THE TESTAMENT — Build System
# Usage: make all | make pdf | make epub | make html | make md | make clean
2026-04-11 01:36:20 +00:00
.PHONY: all pdf epub html md clean check
2026-04-11 01:36:20 +00:00
all: md epub html
md:
python3 build/build.py --md
2026-04-11 01:36:20 +00:00
epub: md
python3 build/build.py --epub
pdf: md
python3 build/build.py --pdf
2026-04-11 01:36:20 +00:00
html: md
python3 build/build.py --html
clean:
2026-04-11 01:36:20 +00:00
rm -f testament-complete.md
rm -f build/output/*.epub build/output/*.pdf
rm -f testament.epub testament.html testament.pdf
check:
@which pandoc >/dev/null 2>&1 && echo "✓ pandoc" || echo "✗ pandoc (brew install pandoc)"
@which xelatex >/dev/null 2>&1 && echo "✓ xelatex" || echo "✗ xelatex (install MacTeX)"
@python3 -c "import weasyprint" 2>/dev/null && echo "✓ weasyprint" || echo "— weasyprint (optional, PDF fallback)"