summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-03-25 01:30:24 +0100
committerJonas Smedegaard <dr@jones.dk>2015-03-25 01:30:24 +0100
commit80337f3abcdeb326658c978f979bbe08e50d2393 (patch)
tree8bb3eea42f86770e2171d9352b32fc6c0f332f30 /Makefile
parentc2ffdbf4230fb0cf3cbb6d56ca1eadfe966b9fb7 (diff)
Updated coverpage sources.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 26 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index bab36ee..2862a3d 100644
--- a/Makefile
+++ b/Makefile
@@ -47,13 +47,36 @@ args_ebook += -M isbn="978-90-823692-0-5"
all: $(flavors:%=$(stem)-%.pdf)
-download: get-$(stem).raw get-$(stem)-a4-front.pdf
+download:: get-$(stem).raw
+download:: get-$(stem)-front-logo2.bmp get-$(stem)-front.svg
get-$(stem).raw: get-%:
./mediawiki-fetch $(source_baseurl) $(source_basename) $*
-get-$(stem)-a4-front.pdf: get-%:
- wget -O $* http://www.greens-efa.eu/fileadmin/dam/Documents/Studies/Ensuring-Utmost-Transparency--Piana-Oberg-Korff.pdf
+# upstream source requires login
+#get-$(stem)-front-photo-orig.jpg: get-%:
+# wget -O $* http://audiovisual.europarl.europa.eu/Asset.aspx?type=nl&id=52c6e976-dd19-4a10-a8f0-afebae7fddd8
+
+$(stem)-front-photo.jpg: $(stem)-front-photo-orig.jpg
+ cp -f $< $@
+ jpegoptim --strip-all $@
+
+get-$(stem)-front-logo2.bmp: get-%:
+ wget -O $* http://siri.biks.dk/transparency/GreensEFA-EN.bmp
+
+$(stem)-front-logo2.png: $(stem)-front-logo2.bmp
+ optipng -clobber $<
+
+get-$(stem)-front-a4-orig.svg: get-%:
+ wget -O $* http://siri.biks.dk/transparency/transparency_front.svg
+
+$(stem)-front-a4.svg: $(stem)-front-a4-orig.svg eut-front-logo2.png eut-front-photo.jpg
+ cp -f $< $@
+ perl -i -pe 's,xlink:href="\K[^\"]+\.bmp,eut-front-logo2.png,' $@
+ perl -i -pe 's,xlink:href="\K[^\"]+\.jpg,eut-front-photo.jpg,' $@
+
+$(stem)-a4-front.pdf: $(stem)-front-a4.svg
+ inkscape -z --export-pdf=$@ $<
$(stem).mw: $(stem).raw
./mediawiki-trim $< $@