summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 $@ $<