summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-12-25 13:48:17 +0100
committerJonas Smedegaard <dr@jones.dk>2014-12-25 13:48:17 +0100
commitfd5f0ad6473c84787c87cfa7637e6e283f970171 (patch)
tree90598d0b251d1996a23bb3c5c06155d3ef9636c5
parent0569db414ea03efb53547b8223161e32199e4348 (diff)
Have pandoc target depend on filters and all templates.
-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 $@ $<