analistica/slides/makefile

20 lines
346 B
Makefile
Raw Permalink Normal View History

2020-06-04 12:34:17 +02:00
slides = $(shell find sections/ -name "*.md" | sort -V)
pandoc = \
@ pandoc $1 \
--pdf-engine xelatex \
2020-06-10 16:21:39 +02:00
-F pandoc-citeproc \
2020-06-04 12:34:17 +02:00
-t beamer \
-o $2
all: slides.pdf handout.pdf
2020-06-11 23:50:31 +02:00
clean:
rm *.pdf
2020-06-04 12:34:17 +02:00
slides.pdf: $(slides) | images
$(call pandoc, $^, $@)
handout.pdf: $(slides) | images
$(call pandoc, $^ -V handout, $@)