st-johns-bulletins/Makefile
Chandler Swift c6e7199609
Move bulletin into bulletins dir; adjust Makefile
This Makefile sets us up for processing multiple bulletins in the same directory.
2025-08-21 18:19:34 -05:00

18 lines
350 B
Makefile

all: output/2025-08-10.pdf
output/2025-08-10.pdf: bulletins/2025-08-10.lytex output cache
date=$(basename $(notdir $@)); \
lilypond-book --output=cache --pdf bulletins/$$date.lytex && \
(cd cache && lualatex $$date.tex) && \
mv cache/$$date.pdf output/
output:
mkdir output
cache:
mkdir cache
clean:
rm -rf output cache
.PHONY: all clean