1
1
mirror of https://github.com/rsms/inter.git synced 2024-11-23 20:55:33 +03:00

makefile: improve UFO dependencies

This commit is contained in:
Rasmus Andersson 2018-09-14 10:55:23 -07:00
parent 7ea269ad8f
commit 88325461e1

View File

@ -72,9 +72,11 @@ build/%.woff: build/%.ttf
# ttf2eot "$<" > "$@"
# UFO -> OTF, TTF
# Master UFO -> OTF, TTF
$(FONTDIR)/var/Inter-UI.var.ttf: src/Inter-UI.designspace $(Regular_ufo_d) $(Black_ufo_d)
all_ufo_masters = $(Regular_ufo_d) $(Black_ufo_d) $(Italic_ufo_d) $(BlackItalic_ufo_d)
$(FONTDIR)/var/Inter-UI.var.ttf: src/Inter-UI.designspace $(all_ufo_masters)
misc/fontbuild compile-var -o $@ src/Inter-UI.designspace
$(FONTDIR)/const/Inter-UI-Regular.%: src/Inter-UI.designspace $(Regular_ufo_d)
@ -89,10 +91,12 @@ $(FONTDIR)/const/Inter-UI-Italic.%: src/Inter-UI.designspace $(Italic_ufo_d)
$(FONTDIR)/const/Inter-UI-BlackItalic.%: src/Inter-UI.designspace $(BlackItalic_ufo_d)
misc/fontbuild compile -o $@ src/Inter-UI-BlackItalic.ufo
$(FONTDIR)/const/Inter-UI-%.otf: build/ufo/Inter-UI-%.ufo src/Inter-UI.designspace $(Regular_ufo_d) $(Black_ufo_d)
# Instance UFO -> OTF, TTF
$(FONTDIR)/const/Inter-UI-%.otf: build/ufo/Inter-UI-%.ufo src/Inter-UI.designspace $(all_ufo_masters)
misc/fontbuild compile -o $@ $<
$(FONTDIR)/const/Inter-UI-%.ttf: build/ufo/Inter-UI-%.ufo src/Inter-UI.designspace $(Regular_ufo_d) $(Black_ufo_d)
$(FONTDIR)/const/Inter-UI-%.ttf: build/ufo/Inter-UI-%.ufo src/Inter-UI.designspace $(all_ufo_masters)
misc/fontbuild compile -o $@ $<