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