From 78d285cd5e3e4f85cc4d8d0b945566ad7be43ebb Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 25 Dec 2014 16:09:46 +0100 Subject: Group all args, and add unflavored tex target (for debugging purposes). --- Makefile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'Makefile') 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 $@ $< -- cgit v1.2.3