make rules to download fontello glyphs
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 5 Jan 2021 19:26:26 +0000 (20:26 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sun, 10 Jan 2021 05:02:36 +0000 (06:02 +0100)
Common "build" code to obtain assets for site styling.

.gitignore
Makefile

index 68854000b911b5e4b9ab14cf5649f5129fc7917c..491b632e2d05e789330593223fc96c026a7717a5 100644 (file)
@@ -4,6 +4,7 @@
 # assets built by make rules
 /lib
 !/lib/photoswipe.html
+/.fontello*
 
 # dynamic user data
 /profile
index e1749fd8345ff5be3f71db2f644a24b7c5001c42..c58390c9804fb41de29a30c65a1f5561ec11b71a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,3 +30,12 @@ lib/ckeditor: lib/.ckeditor
        cat $^/dev/builder/release/ckeditor/lang/nl.js >>$^/dev/builder/release/ckeditor/ckeditor.js #TODO: strip headers
        #TODO: cat dialogs psw-filters >>js
        ln -s .ckeditor/dev/builder/release/ckeditor $@
+
+.fontello.url: .fontello-config.json
+       curl -sSf -o $@ --form 'config=@$<' https://fontello.com
+
+.fontello.zip: .fontello.url
+       curl -sSf -o $@ ${FONTELLO_HOST}/$$(cat $<)/get
+
+minimedit.%: .fontello.zip
+       unzip -q -j -DD -o $< '*/$@'