From 5302601f9935558fd9be372ff5fd1f396f3c2935 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Tue, 28 Nov 2017 17:13:15 -0800 Subject: [PATCH] makefile: add check_fonts step when creating distribution --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e8f429cf7..cf471c841 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,9 @@ build/%.woff: build/%.ttf # build/%.eot: build/%.ttf # ttf2eot "$<" > "$@" +check_fonts: + @misc/check-font.py build/dist-unhinted/*.otf + ZIP_FILE_DIST := build/release/Inter-UI-${VERSION}.zip ZIP_FILE_DEV := build/release/Inter-UI-${VERSION}-$(shell git rev-parse --short=10 HEAD).zip @@ -100,7 +103,7 @@ build/release/Inter-UI-%.zip: build/.zip.zip @echo write "$@" zip: ${ZIP_FILE_DEV} -zip_dist: pre_dist ${ZIP_FILE_DIST} +zip_dist: pre_dist check_fonts ${ZIP_FILE_DIST} pre_dist: @echo "Creating distribution for version ${VERSION}" @@ -109,7 +112,7 @@ pre_dist: exit 1; \ fi -dist: pre_dist zip_dist +dist: zip_dist $(MAKE) glyphinfo copy_docs_fonts -j8 misc/versionize-css.py @echo "——————————————————————————————————————————————————————————————————" @@ -176,4 +179,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 +.PHONY: all web clean install install_otf install_ttf deploy zip zip_dist pre_dist dist glyphinfo copy_docs_fonts all_hinted check_fonts