summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2017-08-28 12:36:40 +0300
committerRasmus Andersson <rasmus@notion.se>2017-08-28 12:36:40 +0300
commitca5fe60c999fa94bc0b8c051eeb0f351ed878fed (patch)
treec7a1e78ebcf2ccc80b2403b1e3d4bdc408585e18 /Makefile
parent4f790d0ae83d490e5b06563bc42f9bc5d633c8a9 (diff)
downloadinter-ca5fe60c999fa94bc0b8c051eeb0f351ed878fed.tar.xz
Various improvements
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 741408111..88826eafa 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ VERSION := $(shell misc/version.py)
include build/etc/generated.make
res_files := src/fontbuild.cfg src/diacritics.txt src/glyphlist.txt \
- src/glyphorder.txt src/features.fea
+ src/features.fea src/glyphorder.txt
# UFO -> TTF & OTF (note that UFO deps are defined by generated.make)
build/tmp/InterfaceTTF/Interface-%.ttf: $(res_files)
@@ -123,10 +123,20 @@ install_otf: all_otf
install: all install_otf
-glyphinfo: _local/UnicodeData.txt
+
+glyphinfo: docs/lab/glyphinfo.json docs/glyphs/metrics.json
+
+src/glyphorder.txt: $(all_ufo)
+ misc/gen-glyphorder.py src/Interface-*.ufo > src/glyphorder.txt
+
+docs/lab/glyphinfo.json: _local/UnicodeData.txt src/glyphorder.txt
misc/gen-glyphinfo.py -ucd _local/UnicodeData.txt \
src/Interface-*.ufo > docs/lab/glyphinfo.json
+docs/glyphs/metrics.json: src/glyphorder.txt
+ misc/gen-metrics-and-svgs.py -f src/Interface-Regular.ufo
+
+
# Download latest Unicode data
_local/UnicodeData.txt:
@mkdir -p _local