-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGNUmakefile
30 lines (24 loc) · 878 Bytes
/
GNUmakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.PHONY: clean
%-latex.pdf: %.md filters/*.lua
pandoc -s -f markdown-implicit_figures -t pdf -o $@ \
-L filters/quotations.lua \
--pdf-engine=xelatex $<
%-ms.pdf: %.md filters/*.lua
pandoc -s -f markdown-implicit_figures -t pdf -o $@ \
-L filters/quotations.lua \
--pdf-engine=pdfroff --pdf-engine-opt=-dpaper=a4 \
--pdf-engine-opt=-U --pdf-engine-opt=-P-pa4 $<
%.tex: %.md filters/*.lua
pandoc -s -f markdown-implicit_figures -t latex -o $@ \
-L filters/quotations.lua \
--pdf-engine=xelatex $<
%.ms: %.md filters/*.lua
pandoc -s -f markdown-implicit_figures -t ms -o $@ \
-L filters/quotations.lua \
--pdf-engine=pdfroff --pdf-engine-opt=-dpaper=a4 \
--pdf-engine-opt=-U --pdf-engine-opt=-P-pa4 $<
%.html: %.md filters/*.lua
pandoc -s -f markdown-implicit_figures -t html -o $@ \
-L filters/quotations.lua $<
clean:
rm -f *~ test*.pdf test.{tex,ms,html}