analistica/lectures/makefile

18 lines
324 B
Makefile
Raw Normal View History

2020-03-06 02:24:32 +01:00
sections = $(shell find sections/ -name '*.md' | sort -V)
pandoc = \
@ pandoc $(1) \
--toc \
--standalone \
--pdf-engine=xelatex \
-F pandoc-crossref \
-o $(2).pdf
2020-04-25 23:55:31 +02:00
all: lectures.pdf
2020-03-06 02:24:32 +01:00
clean:
2020-04-25 23:55:31 +02:00
rm lectures.pdf
2020-03-06 02:24:32 +01:00
2020-04-25 23:55:31 +02:00
lectures.pdf: $(sections) images
2020-03-06 02:24:32 +01:00
$(call pandoc, $(sections), lessons)