summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 $@ $<