From c7c2fc6f5ba2fe023f6cf41e22d741078b1aa6be Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 25 Dec 2014 14:54:17 +0100 Subject: Create 3 flavors: a4 book ebook. --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a8f9131..6059896 100644 --- a/Makefile +++ b/Makefile @@ -23,16 +23,19 @@ args += -H header.tex -B before.tex -A after.tex args += $(filters:%=--filter %) args += $(PANDOC_CITEPROC_FILE:%=--bibliography=%) args += -V mainfont="Lora" -V sansfont="Quattrocento Sans" -V monofont="Inconsolata" -args += -V papersize=a4paper -V fontsize=10pt args += -V documentclass=memoir -V headstyles=komalike -V chapterstyle=ell -args += -V classoption=oneside -V classoption=titlepage -V classoption=$(STATUS) +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="" +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 -all: $(stem).pdf +all: $(flavors:%=$(stem)-%.pdf) download: wget -o $(stem).raw '$(source_baseurl)index.php?title=$(source_basename)&action=edit' @@ -47,5 +50,5 @@ $(stem).mediawiki: $(stem).raw -e '$(re_urlencode);' \ < $< > $@ -$(stem).pdf: $(stem).mediawiki $(templates) $(filters) - pandoc -f mediawiki $(args) -o $@ $< +$(flavors:%=$(stem)-%.pdf): $(stem)-%.pdf: $(stem).mediawiki $(templates) $(filters) + pandoc -f mediawiki $(args_$*) -o $@ $< -- cgit v1.2.3