1
1
mirror of https://github.com/rsms/inter.git synced 2024-11-27 09:49:07 +03:00

makefile: improve docs data generation order

This commit is contained in:
Rasmus Andersson 2018-09-28 12:58:16 -07:00
parent 98edb192e8
commit 9dc29342aa

View File

@ -209,8 +209,7 @@ pre_dist:
exit 1; \ exit 1; \
fi fi
dist: zip_dist docs_info docs_fonts dist: zip_dist docs
# $(MAKE) docs_info docs_fonts -j
misc/tools/versionize-css.py misc/tools/versionize-css.py
@echo "——————————————————————————————————————————————————————————————————" @echo "——————————————————————————————————————————————————————————————————"
@echo "" @echo ""
@ -225,6 +224,9 @@ dist: zip_dist docs_info docs_fonts
@echo "" @echo ""
@echo "——————————————————————————————————————————————————————————————————" @echo "——————————————————————————————————————————————————————————————————"
docs: docs_fonts
$(MAKE) -j docs_info
docs_info: docs/_data/fontinfo.json docs/lab/glyphinfo.json docs/glyphs/metrics.json docs_info: docs/_data/fontinfo.json docs/lab/glyphinfo.json docs/glyphs/metrics.json
docs_fonts: docs_fonts:
@ -236,6 +238,8 @@ docs_fonts:
$(FONTDIR)/var/*.woff2 \ $(FONTDIR)/var/*.woff2 \
docs/font-files/ docs/font-files/
.PHONY: docs docs_info docs_fonts
docs/_data/fontinfo.json: docs/font-files/Inter-UI-Regular.otf misc/tools/fontinfo.py docs/_data/fontinfo.json: docs/font-files/Inter-UI-Regular.otf misc/tools/fontinfo.py
misc/tools/fontinfo.py -pretty $< > docs/_data/fontinfo.json misc/tools/fontinfo.py -pretty $< > docs/_data/fontinfo.json
@ -279,4 +283,4 @@ install: install_otf
clean: clean:
rm -rvf build/tmp build/fonts rm -rvf build/tmp build/fonts
.PHONY: all web clean install install_otf install_ttf deploy pre_dist dist geninfo copy_docs_fonts test glyphsync .PHONY: all web clean install install_otf install_ttf deploy pre_dist dist geninfo test glyphsync