diff options
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 $@ $< |