analistica/notes/makefile
2020-03-06 02:24:32 +01:00

18 lines
329 B
Makefile

sections = $(shell find sections/ -name '*.md' | sort -V)
pandoc = \
@ pandoc $(1) \
--toc \
--standalone \
--pdf-engine=xelatex \
-F pandoc-crossref \
-o $(2).pdf
all: exercises.pdf
clean:
rm exercises.pdf
exercises.pdf: $(sections) images
$(call pandoc, $(sections), exercises)