mirror of
https://github.com/rsms/inter.git
synced 2024-12-23 23:51:39 +03:00
makefile: adds support for FONTBUILD_FLAGS
This commit is contained in:
parent
d7b599659c
commit
3df9dfb68c
6
Makefile
6
Makefile
@ -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
|
||||
|
4
init.sh
4
init.sh
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user