diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-03-30 16:27:01 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-03-30 16:27:01 +0200 |
commit | 85101b84c3ebc47be35be6851f800a6110dfef9d (patch) | |
tree | 182f9eda880859c4c4d42de5527d27b04da7a372 /Makefile | |
parent | 3b9241d244b5e2df3693433e3f842968a8a5e4ec (diff) |
Add targets get-fonts install-fonts.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 $@ |