From 85101b84c3ebc47be35be6851f800a6110dfef9d Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 30 Mar 2017 16:27:01 +0200 Subject: Add targets get-fonts install-fonts. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7c15928..3912400 100644 --- a/Makefile +++ b/Makefile @@ -51,6 +51,7 @@ all: $(flavors:%=$(stem)-%.pdf) download:: get-$(stem).raw download:: get-$(stem)-front-logo2.bmp get-$(stem)-front-a4-orig.svg download:: get-$(stem)-front-photo-orig.jpg +download:: get-fonts get-$(stem).raw: get-%: # FIXME: website apparently down (last checked 2017-03-30) @@ -65,6 +66,15 @@ get-$(stem)-front-logo2.bmp: get-%: get-$(stem)-front-a4-orig.svg: get-%: curl -o '$*' 'http://siri.biks.dk/transparency/transparency_front.svg' +get-fonts: + curl -LO https://github.com/cyrealtype/Lora-Cyrillic/raw/master/fonts/ttf/Lora-{Regular,Italic,Bold,BoldItalic}.ttf + curl -Lo quattrocento-sans-v2.0.zip http://www.impallari.com/media/uploads/prosources/update-19-source.zip + unzip -uo quattrocento-sans-v2.0.zip quattrocento-sans-v2.0/*.ttf + +install-fonts: + mkdir -p ~/.fonts + cp -ft ~/.fonts Lora-*.ttf quattrocento-sans-v2.0/*.ttf + $(stem)-front-photo.jpg: $(stem)-front-photo-orig.jpg cp -f $< $@ jpegoptim --strip-all --all-progressive --force $@ -- cgit v1.2.3