diff options
author | Rasmus Andersson <rasmus@notion.se> | 2018-09-14 20:55:23 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2018-10-11 09:37:43 +0300 |
commit | 88325461e129c37b1306bc149159750a4a8b65d9 (patch) | |
tree | 42b4f150e4df6791d365869e8b2f617e3ff30742 | |
parent | 7ea269ad8f835fa64640337e124e3c5ff86fac7f (diff) | |
download | inter-88325461e129c37b1306bc149159750a4a8b65d9.tar.xz |
makefile: improve UFO dependencies
-rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 $@ $< |