makefile: adds support for FONTBUILD_FLAGS

This commit is contained in:
Rasmus Andersson 2019-09-03 20:43:41 -07:00
parent d7b599659c
commit 3df9dfb68c
2 changed files with 5 additions and 5 deletions

View file

@ -91,14 +91,14 @@ build/%.woff: build/%.ttf
# Master UFOs -> variable TTF
$(FONTDIR)/var/%.var.ttf: src/%.designspace $(all_ufo_masters)
misc/fontbuild compile-var -o $@ $<
misc/fontbuild compile-var -o $@ $(FONTBUILD_FLAGS) $<
# Instance UFO -> OTF, TTF (note: masters' rules in generated.make)
$(FONTDIR)/const/Inter-%.otf: build/ufo/Inter-%.ufo
misc/fontbuild compile -o $@ $<
misc/fontbuild compile -o $@ $(FONTBUILD_FLAGS) $<
$(FONTDIR)/const/Inter-%.ttf: build/ufo/Inter-%.ufo
misc/fontbuild compile -o $@ $<
misc/fontbuild compile -o $@ $(FONTBUILD_FLAGS) $<
# designspace <- glyphs file

View file

@ -413,9 +413,9 @@ else
# master OTF and TTF rules
for style in "${master_styles[@]}"; do
echo "${DIST_DIR_TOK}const/Inter-${style}.otf: \$(${style}_ufo_d)" >> "$GEN_MAKE_FILE"
echo -e "\tmisc/fontbuild compile -o \$@ src/Inter-${style}.ufo" >> "$GEN_MAKE_FILE"
echo -e "\tmisc/fontbuild compile -o \$@ \$(FONTBUILD_FLAGS) src/Inter-${style}.ufo" >> "$GEN_MAKE_FILE"
echo "${DIST_DIR_TOK}const/Inter-${style}.ttf: \$(${style}_ufo_d)" >> "$GEN_MAKE_FILE"
echo -e "\tmisc/fontbuild compile -o \$@ src/Inter-${style}.ufo" >> "$GEN_MAKE_FILE"
echo -e "\tmisc/fontbuild compile -o \$@ \$(FONTBUILD_FLAGS) src/Inter-${style}.ufo" >> "$GEN_MAKE_FILE"
echo "" >> "$GEN_MAKE_FILE"
done