- build/build.py: Clean compilation script (md, epub, pdf via xelatex) - build/metadata.yaml: Pandoc metadata (fonts, page size, formatting) - build/frontmatter.md: Enhanced front matter with chapter guide table - build/backmatter.md: Acknowledgments, sovereignty note, author bio - Makefile: make all/pdf/epub/md/clean targets - Updated .gitignore for build artifacts Verified: markdown (19,490 words) and EPUB (213 KB) build successfully. Closes #18
25 lines
592 B
Makefile
25 lines
592 B
Makefile
# THE TESTAMENT — Build System
|
|
# Usage: make all | make pdf | make epub | make md | make clean
|
|
|
|
.PHONY: all pdf epub md clean check
|
|
|
|
all: md epub
|
|
|
|
md:
|
|
python3 build/build.py --md
|
|
|
|
epub: md
|
|
python3 build/build.py --epub
|
|
|
|
pdf: md
|
|
python3 build/build.py --pdf
|
|
|
|
clean:
|
|
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)"
|