From 299f3df84e2bbd4744b60e29003ddc86a2835f32 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Wed, 29 Oct 2025 01:52:09 +0100 Subject: [PATCH] add handout targets --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index c74fa79..7109409 100644 --- a/Makefile +++ b/Makefile @@ -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`)