diff --git a/Makefile b/Makefile index 00a9a82..52d99e9 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/bulletin.lytex b/bulletins/2025-08-10.lytex similarity index 100% rename from bulletin.lytex rename to bulletins/2025-08-10.lytex