blob: 244dbc8e1b476c01449edc757c8fde79131cef06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
YL = $(basename $(wildcard *.yml))
all: $(addsuffix .pdf, $(YL))
PD = \
-N -s -f markdown -t latex -H ../head.tex \
-V classoption=a4paper
$(addsuffix .pdf, $(YL)): %.pdf: %.yml %.md
cat < $*.md | sed -f ../pre.sed | sed -f drop.sed | \
pandoc $(PD) --metadata-file=$*.yml -o $@
|