From b99dc8255b7c8cc0a16d753e2c3bb97f2a80d5bc Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Thu, 27 Mar 2025 13:30:19 -0500 Subject: Initial commit --- volume1/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 volume1/Makefile (limited to 'volume1/Makefile') diff --git a/volume1/Makefile b/volume1/Makefile new file mode 100644 index 0000000..c0d0d3d --- /dev/null +++ b/volume1/Makefile @@ -0,0 +1,33 @@ +BOOK:=volume1.pdf +FRONTMATTER:=$(wildcard src/frontmatter/*.md) +BACKMATTER:=$(wildcard src/backmatter/*.md) +FMLATEX:=$(FRONTMATTER:.md=.tex) +BMLATEX:=$(BACKMATTER:.md=.tex) +CHAPTERS:=$(wildcard src/chapters/*.md) +APPENDICES:=$(wildcard src/appendices/*.md) +FIGURES:=$(wildcard src/figs/*.svg) +PFLAGS:=--pdf-engine=xelatex \ + --from=markdown \ + --indented-code-classes=javascript \ + --highlight-style=monochrome \ + -V mainfont="Apple Garamond" \ + -V monofont="FreeMono" \ + -V documentclass=book \ + -V papersize=letter \ + -V geometry:margin=1in + +.PHONY: all clean + +all: $(BOOK) + +$(BOOK): $(CHAPTERS) $(FMLATEX) $(BMLATEX) $(APPENDICES) src/title.txt $(FIGURES) + pandoc src/title.txt $(CHAPTERS) $(APPENDICES) -o $@ $(PFLAGS) --toc=true -N -B $(FMLATEX) + +$(FMLATEX): $(FRONTMATTER) + pandoc $^ -o $@ $(PFLAGS) + +$(BMLATEX): $(BACKMATTER) + pandoc $^ -o $@ $(PFLAGS) + +clean: + $(RM) *.pdf src/frontmatter/*.tex -- cgit v1.2.3