summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2018-02-18 06:55:38 +0300
committerRasmus Andersson <rasmus@notion.se>2018-02-18 06:55:38 +0300
commitc06dd62eafeb5f76cf5aad7fbc1b14ebee08c5c1 (patch)
tree78048145ff39cb186871e4eb4415b07ba437caeb /Makefile
parent1d41a62a38c7c31e1d0079985d001082e96f61d2 (diff)
downloadinter-c06dd62eafeb5f76cf5aad7fbc1b14ebee08c5c1.tar.xz
Include inter-ui.css in zip archives and generate fontinfo for regular weight to docs/info.json, used by the website
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 32aab26c5..2c0305d17 100644
--- a/Makefile
+++ b/Makefile
@@ -86,8 +86,10 @@ build/.zip.zip: all_otf
"build/.zip/Inter UI (OTF)"
@cp -a build/dist-unhinted/*.woff build/dist-unhinted/*.woff2 \
"build/.zip/Inter UI (web)/"
+ @cp -a docs/inter-ui.css "build/.zip/Inter UI (web)/"
@cp -a build/dist-hinted/*.woff build/dist-hinted/*.woff2 \
"build/.zip/Inter UI (web hinted)/"
+ @cp -a docs/inter-ui.css "build/.zip/Inter UI (web hinted)/"
@cp -a build/dist-unhinted/*.ttf "build/.zip/Inter UI (TTF)/"
@cp -a build/dist-hinted/*.ttf "build/.zip/Inter UI (TTF hinted)/"
@cp -a build/dist-unhinted/*.otf "build/.zip/Inter UI (OTF)/"
@@ -113,7 +115,7 @@ pre_dist:
fi
dist: zip_dist
- $(MAKE) glyphinfo copy_docs_fonts -j8
+ $(MAKE) geninfo copy_docs_fonts -j8
misc/versionize-css.py
@echo "——————————————————————————————————————————————————————————————————"
@echo ""
@@ -157,11 +159,14 @@ install_otf: all_otf
install: install_otf
-glyphinfo: docs/lab/glyphinfo.json docs/glyphs/metrics.json
+geninfo: docs/info.json docs/lab/glyphinfo.json docs/glyphs/metrics.json
src/glyphorder.txt: src/Inter-UI-Regular.ufo/lib.plist src/Inter-UI-Black.ufo/lib.plist src/diacritics.txt misc/gen-glyphorder.py
misc/gen-glyphorder.py src/Inter-UI-*.ufo > src/glyphorder.txt
+docs/info.json: misc/fontinfo.py docs/font-files/Inter-UI-*.otf
+ misc/fontinfo.py -pretty docs/font-files/Inter-UI-Regular.otf > docs/info.json
+
docs/lab/glyphinfo.json: _local/UnicodeData.txt src/glyphorder.txt src/fontbuild.cfg misc/gen-glyphinfo.py
misc/gen-glyphinfo.py -ucd _local/UnicodeData.txt \
src/Inter-UI-*.ufo > docs/lab/glyphinfo.json
@@ -179,4 +184,4 @@ _local/UnicodeData.txt:
clean:
rm -rf build/tmp/* build/dist-hinted build/dist-unhinted
-.PHONY: all web clean install install_otf install_ttf deploy zip zip_dist pre_dist dist glyphinfo copy_docs_fonts all_hinted test
+.PHONY: all web clean install install_otf install_ttf deploy zip zip_dist pre_dist dist geninfo copy_docs_fonts all_hinted test