make rules to download fontello glyphs
[minimedit.git] / Makefile
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 $< '*/$@'