mirror of
https://github.com/rsms/inter.git
synced 2024-11-17 07:47:33 +01:00
tooling: optimize makefile deps to avoid rebuilding designspace & UFOs when only features change
This commit is contained in:
parent
ac9a55dc61
commit
023fc9325c
1 changed files with 3 additions and 3 deletions
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 a new issue