summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 15 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index fba545f..2cbd7c8 100644
--- a/Makefile
+++ b/Makefile
@@ -19,20 +19,20 @@ STATUS ?= draft
args_filter += $(filters:%=--filter %)
args_filter += $(PANDOC_CITEPROC_FILE:%=--bibliography=%)
-args += --template=template.tex --latex-engine=xelatex
-args += -H header.tex -B before.tex -A after.tex
-args += -V mainfont="Lora" -V sansfont="Quattrocento Sans" -V monofont="Inconsolata"
-args += -V documentclass=memoir -V headstyles=komalike -V chapterstyle=ell
-args += -V classoption=titlepage -V classoption=$(STATUS)
-args += -V lang=english -V langoption=variant=british
-args += -V title="Ensuring utmost transparency"
-args += -V subtitle="Free Software and Open Standards under the Rules of Procedure of the European Parliament"
-args += -V author="Carlo Piana" -V author="Ulf Öberg"
-args += -V date=""
+args_meta += -V lang=english -V langoption=variant=british
+args_meta += -V title="Ensuring utmost transparency"
+args_meta += -V subtitle="Free Software and Open Standards under the Rules of Procedure of the European Parliament"
+args_meta += -V author="Carlo Piana" -V author="Ulf Öberg"
+args_meta += -V date=""
+args_latex += --template=template.tex --latex-engine=xelatex
+args_latex += -H header.tex -B before.tex -A after.tex
+args_latex += -V mainfont="Lora" -V sansfont="Quattrocento Sans" -V monofont="Inconsolata"
+args_latex += -V documentclass=memoir -V headstyles=komalike -V chapterstyle=ell
+args_latex += -V classoption=titlepage -V classoption=$(STATUS)
flavors = a4 book ebook
-args_a4 = $(args) -V papersize=a4paper -V fontsize=10pt -V classoption=oneside
-args_book = $(args) -V papersize=b5paper -V fontsize=10pt -V classoption=twoside
-args_ebook = $(args) -V papersize=ebook -V fontsize=12pt -V classoption=oneside
+args_a4 = -V papersize=a4paper -V fontsize=10pt -V classoption=oneside
+args_book = -V papersize=b5paper -V fontsize=10pt -V classoption=twoside
+args_ebook = -V papersize=ebook -V fontsize=12pt -V classoption=oneside
all: $(flavors:%=$(stem)-%.pdf)
@@ -52,5 +52,5 @@ $(stem).mediawiki: $(stem).raw
$(stem).native: $(stem).mediawiki $(filters)
pandoc -f mediawiki $(args_filter) -o $@ $<
-$(flavors:%=$(stem)-%.pdf): $(stem)-%.pdf: $(stem).native $(templates)
- pandoc $(args_$*) -o $@ $<
+$(flavors:%=$(stem)-%.pdf) $(stem).tex: $(stem).native $(templates)
+ pandoc $(args_meta) $(args_latex) $(args_$(@:$(stem)-%.pdf=%)) -o $@ $<