Move bulletin into bulletins dir; adjust Makefile

This Makefile sets us up for processing multiple bulletins in the same directory.
This commit is contained in:
Chandler Swift 2025-08-21 18:19:34 -05:00
parent 378efa4e5f
commit c6e7199609
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
2 changed files with 12 additions and 6 deletions

View file

@ -1,12 +1,18 @@
all: output/bulletin.pdf
all: output/2025-08-10.pdf
output/bulletin.tex: bulletin.lytex
lilypond-book --output=output --pdf bulletin.lytex
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/bulletin.pdf: output/bulletin.tex
cd output && lualatex bulletin.tex
output:
mkdir output
cache:
mkdir cache
clean:
rm -rf output
rm -rf output cache
.PHONY: all clean