18 lines
329 B
Makefile
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)
|