mirror of
https://github.com/rsms/inter.git
synced 2024-09-11 10:55:24 +03:00
tooling: optimize makefile deps to avoid rebuilding designspace & UFOs when only features change
This commit is contained in:
parent
ac9a55dc61
commit
023fc9325c
6
Makefile
6
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user