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

18 lines
321 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: lessons.pdf
clean:
rm lessons.pdf
lessons.pdf: $(sections) images
$(call pandoc, $(sections), lessons)