summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-12-25 14:54:17 +0100
committerJonas Smedegaard <dr@jones.dk>2014-12-25 14:54:17 +0100
commitc7c2fc6f5ba2fe023f6cf41e22d741078b1aa6be (patch)
tree8e959d14b4287171d2fc8cc54cbb3ddc28930d72 /Makefile
parent2ca1aa70f5b49aa3eaee998a4d562c5bc37066bd (diff)
Create 3 flavors: a4 book ebook.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
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 $@ $<