tooling: optimize makefile deps to avoid rebuilding designspace & UFOs when only features change

This commit is contained in:
Rasmus Andersson 2023-04-19 09:50:17 -07:00
parent ac9a55dc61
commit 023fc9325c

View file

@ -27,15 +27,15 @@ $(UFODIR)/features: src/features
@ln -s ../../src/features $(UFODIR)/features
# designspace
$(UFODIR)/%.designspace: $(UFODIR)/%.glyphs $(UFODIR)/features | venv
$(UFODIR)/%.designspace: $(UFODIR)/%.glyphs | venv
. $(VENV) ; fontmake -o ufo -g $< --designspace-path $@ \
--master-dir $(UFODIR) --instance-dir $(UFODIR)
. $(VENV) ; python misc/tools/postprocess-designspace.py $@
# UFOs from designspace
$(UFODIR)/Inter-%Italic.ufo: $(UFODIR)/Inter-Italic.designspace | venv
$(UFODIR)/Inter-%Italic.ufo: $(UFODIR)/Inter-Italic.designspace $(UFODIR)/features | venv
. $(VENV) ; bash misc/tools/gen-instance-ufo.sh $< $@
$(UFODIR)/Inter-%.ufo: $(UFODIR)/Inter-Roman.designspace | venv
$(UFODIR)/Inter-%.ufo: $(UFODIR)/Inter-Roman.designspace $(UFODIR)/features | venv
. $(VENV) ; bash misc/tools/gen-instance-ufo.sh $< $@
# make sure intermediate files are not rm'd by make