add handout targets

This commit is contained in:
2025-10-29 01:52:09 +01:00
parent 75137199da
commit 299f3df84e

View File

@@ -7,10 +7,14 @@ help: ## Print the help message
# Search should not include slides separated by '***', as those are for mdp, not pandoc.
markdown != find slides/ -maxdepth 2 -type f -name "*.md" -exec grep -LF '***' '{}' ';'
pdfs = $(patsubst %.md, %.pdf, $(markdown))
handouts = $(patsubst %.md, %_handout.pdf, $(markdown))
$(pdfs): %.pdf: %.md
pandoc -t beamer -V theme:Warsaw -i $< -o $@
$(handouts): %_handout.pdf: %.md
pandoc -t beamer -V handout -V theme:Warsaw -i $< -o $@
.PHONY: pdfs
pdfs: $(pdfs) ## Generate all pdfs (try `make -j pdfs`)