summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-12-29 16:28:05 +0100
committerJonas Smedegaard <dr@jones.dk>2014-12-29 16:28:05 +0100
commit68679e30fdaab2d416c9c105146ac8971ddcd8d5 (patch)
treefce4bd50a2ad2ae9ca589abb7374f44cf93884e8 /Makefile
parent5a0d7f7a0c768d927070dc0fe7ef8d941702f979 (diff)
Apply all filters for native target (speeding up multiple LaTeX outputs.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b93e378..a4193f7 100644
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,9 @@ templates = template.tex header.tex before.tex after.tex
filters = ./pandoc-memoir ./pandoc-cs1
export PANDOC_CITEPROC_FILE = $(stem).bib
+filters += $(if $(PANDOC_CITEPROC_FILE),pandoc-citeproc)
-filters-late = ./pandoc-iri
+filters += ./pandoc-iri
# To produce final document: make -B STATUS=final
STATUS ?= draft
@@ -22,8 +23,7 @@ STATUS ?= draft
title = Ensuring utmost transparency
subtitle = Free Software and Open Standards under the Rules of Procedure of the European Parliament
args_filter += $(filters:%=--filter %)
-args_filter += $(PANDOC_CITEPROC_FILE:%=--bibliography=%)
-args_filter_late += $(filters-late:%=--filter %)
+args_meta += $(PANDOC_CITEPROC_FILE:%=-M bibliography=%)
args_meta += -V lang=english -V langoption=variant=british
args_meta += -M title="$(title) - $(subtitle)"
args_meta += -V title="$(title)"
@@ -57,7 +57,7 @@ $(stem).mediawiki: $(stem).raw
< $< > $@
$(stem).native: $(stem).mediawiki $(filters)
- pandoc -f mediawiki $(args_filter) -o $@ $<
+ pandoc -f mediawiki $(args_meta) $(args_filter) -o $@ $<
$(flavors:%=$(stem)-%.pdf) $(stem).tex: $(stem).native $(templates)
- pandoc $(args_meta) $(args_filter_late) $(args_latex) $(args_$(@:$(stem)-%.pdf=%)) -o $@ $<
+ pandoc $(args_meta) $(args_latex) $(args_$(@:$(stem)-%.pdf=%)) -o $@ $<