Files
the-testament/Makefile
Timmy 332166a901
Some checks failed
Smoke Test / smoke (pull_request) Failing after 11s
Build Validation / validate-manuscript (pull_request) Successful in 7s
wip: fix PosixPath formatting, update Makefile with unified target
- Fix relative_to() format string errors (str() wrapper)
- Add 'make unified' target for compile_all.py
- Update 'make check' to use compile_all.py --check
- Clean removes build-manifest.json and chapters.json
2026-04-11 14:28:26 -04:00

36 lines
771 B
Makefile

# 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