summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 697cca2..7aa7cd7 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,8 @@ source_basename = EUT/2nd-edition
# work around in mediawiki bug parsing blockquote tags on same line
re_blockquote = s|\n*(</?blockquote>)\n*|\n$$1\n|g
+templates = template.tex header.tex before.tex after.tex
+
filters = ./pandoc-filter-sections ./pandoc-filter-bib
export PANDOC_CITEPROC_FILE = $(stem).bib
@@ -41,5 +43,5 @@ $(stem).mediawiki: $(stem).raw
-e '$(re_blockquote);' \
< $< > $@
-$(stem).pdf: $(stem).mediawiki template.tex
+$(stem).pdf: $(stem).mediawiki $(templates) $(filters)
pandoc -f mediawiki $(args) -o $@ $<