analistica/slides/makefile
2020-07-05 11:36:34 +02:00

16 lines
304 B
Makefile

slides = $(shell find sections/ -name "*.md" | sort -V)
pandoc = \
@ pandoc $1 \
--pdf-engine xelatex \
-t beamer \
-o $2
all: slides.pdf handout.pdf
slides.pdf: $(slides) | images
$(call pandoc, $^, $@)
handout.pdf: $(slides) | images
$(call pandoc, $^ -V handout, $@)