summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile109
1 files changed, 95 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index cbaa46f79..695678998 100644
--- a/Makefile
+++ b/Makefile
@@ -96,28 +96,72 @@ all_ufo_masters = $(Thin_ufo_d) \
$(FONTDIR)/var/%.var.ttf: src/%.designspace $(all_ufo_masters)
misc/fontbuild compile-var -o $@ $<
-$(FONTDIR)/const/Inter-UI-Thin.%: src/Inter-UI.designspace $(Thin_ufo_d)
+
+# ---------- begin workaround for issue #110 -----------
+
+# $(FONTDIR)/const/Inter-UI-Thin.%: src/Inter-UI.designspace $(Thin_ufo_d)
+# misc/fontbuild compile -o $@ src/Inter-UI-Thin.ufo
+
+# $(FONTDIR)/const/Inter-UI-ThinItalic.%: src/Inter-UI.designspace $(ThinItalic_ufo_d)
+# misc/fontbuild compile -o $@ src/Inter-UI-ThinItalic.ufo
+
+# $(FONTDIR)/const/Inter-UI-Regular.%: src/Inter-UI.designspace $(Regular_ufo_d)
+# misc/fontbuild compile -o $@ src/Inter-UI-Regular.ufo
+
+# $(FONTDIR)/const/Inter-UI-Italic.%: src/Inter-UI.designspace $(Italic_ufo_d)
+# misc/fontbuild compile -o $@ src/Inter-UI-Italic.ufo
+
+# $(FONTDIR)/const/Inter-UI-Black.%: src/Inter-UI.designspace $(Black_ufo_d)
+# misc/fontbuild compile -o $@ src/Inter-UI-Black.ufo
+
+# $(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-Thin.ttf: src/Inter-UI.designspace $(Thin_ufo_d)
misc/fontbuild compile -o $@ src/Inter-UI-Thin.ufo
-$(FONTDIR)/const/Inter-UI-ThinItalic.%: src/Inter-UI.designspace $(ThinItalic_ufo_d)
+$(FONTDIR)/const/Inter-UI-ThinItalic.ttf: src/Inter-UI.designspace $(ThinItalic_ufo_d)
misc/fontbuild compile -o $@ src/Inter-UI-ThinItalic.ufo
-$(FONTDIR)/const/Inter-UI-Regular.%: src/Inter-UI.designspace $(Regular_ufo_d)
+$(FONTDIR)/const/Inter-UI-Regular.ttf: src/Inter-UI.designspace $(Regular_ufo_d)
misc/fontbuild compile -o $@ src/Inter-UI-Regular.ufo
-$(FONTDIR)/const/Inter-UI-Italic.%: src/Inter-UI.designspace $(Italic_ufo_d)
+$(FONTDIR)/const/Inter-UI-Italic.ttf: src/Inter-UI.designspace $(Italic_ufo_d)
misc/fontbuild compile -o $@ src/Inter-UI-Italic.ufo
-$(FONTDIR)/const/Inter-UI-Black.%: src/Inter-UI.designspace $(Black_ufo_d)
+$(FONTDIR)/const/Inter-UI-Black.ttf: src/Inter-UI.designspace $(Black_ufo_d)
misc/fontbuild compile -o $@ src/Inter-UI-Black.ufo
-$(FONTDIR)/const/Inter-UI-BlackItalic.%: src/Inter-UI.designspace $(BlackItalic_ufo_d)
+$(FONTDIR)/const/Inter-UI-BlackItalic.ttf: src/Inter-UI.designspace $(BlackItalic_ufo_d)
misc/fontbuild compile -o $@ src/Inter-UI-BlackItalic.ufo
+
+$(FONTDIR)/const/Inter-UI-Thin.otf: src/Inter-UI.designspace $(Thin_ufo_d)
+ misc/fontbuild2 compile -o $@ src/Inter-UI-Thin.ufo
+
+$(FONTDIR)/const/Inter-UI-ThinItalic.otf: src/Inter-UI.designspace $(ThinItalic_ufo_d)
+ misc/fontbuild2 compile -o $@ src/Inter-UI-ThinItalic.ufo
+
+$(FONTDIR)/const/Inter-UI-Regular.otf: src/Inter-UI.designspace $(Regular_ufo_d)
+ misc/fontbuild2 compile -o $@ src/Inter-UI-Regular.ufo
+
+$(FONTDIR)/const/Inter-UI-Italic.otf: src/Inter-UI.designspace $(Italic_ufo_d)
+ misc/fontbuild2 compile -o $@ src/Inter-UI-Italic.ufo
+
+$(FONTDIR)/const/Inter-UI-Black.otf: src/Inter-UI.designspace $(Black_ufo_d)
+ misc/fontbuild2 compile -o $@ src/Inter-UI-Black.ufo
+
+$(FONTDIR)/const/Inter-UI-BlackItalic.otf: src/Inter-UI.designspace $(BlackItalic_ufo_d)
+ misc/fontbuild2 compile -o $@ src/Inter-UI-BlackItalic.ufo
+
+# ---------- end workaround for issue #110 -----------
+
+
# Instance UFO -> OTF, TTF
$(FONTDIR)/const/Inter-UI-%.otf: build/ufo/Inter-UI-%.ufo
- misc/fontbuild compile -o $@ $<
+ misc/fontbuild2 compile -o $@ $<
$(FONTDIR)/const/Inter-UI-%.ttf: build/ufo/Inter-UI-%.ufo
misc/fontbuild compile -o $@ $<
@@ -152,23 +196,53 @@ build/ufo/Inter-UI-%.ufo: src/Inter-UI.designspace $(all_ufo_masters)
# hinted TTF files via autohint
$(FONTDIR)/const-hinted/%.ttf: $(FONTDIR)/const/%.ttf
mkdir -p "$(dir $@)"
- ttfautohint --fallback-stem-width=256 --no-info --composites "$<" "$@"
+ ttfautohint --fallback-stem-width=256 --no-info "$<" "$@"
# $(FONTDIR)/var-hinted/%.ttf: $(FONTDIR)/var/%.ttf
# mkdir -p "$(dir $@)"
-# ttfautohint --fallback-stem-width=256 --no-info --composites "$<" "$@"
+# ttfautohint --fallback-stem-width=256 --no-info "$<" "$@"
# make sure intermediate TTFs are not gc'd by make
.PRECIOUS: $(FONTDIR)/const/%.ttf $(FONTDIR)/const-hinted/%.ttf $(FONTDIR)/var/%.var.ttf
+
+
+
# check var
all_check_var: $(FONTDIR)/var/Inter-UI.var.ttf
- misc/fontbuild checkfont $^
+ misc/fontbuild checkfont $(FONTDIR)/var/*.*
# test runs all tests
# Note: all_check_const is generated by init.sh and runs "fontbuild checkfont"
# on all otf and ttf files.
test: all_check_const all_check_var
+ @echo "test: all ok"
+
+# check does the same thing as test, but without any dependency checks, meaning
+# it will check whatever font files are already built.
+check:
+ misc/fontbuild checkfont $(FONTDIR)/const/*.* $(FONTDIR)/var/*.*
+ @echo "check: all ok"
+
+.PHONY: test check
+
+
+
+
+# samples renders PDF and PNG samples
+samples: $(FONTDIR)/samples all_samples_pdf all_samples_png
+
+$(FONTDIR)/samples/%.pdf: $(FONTDIR)/const/%.otf
+ misc/tools/fontsample/fontsample -o "$@" "$<"
+
+$(FONTDIR)/samples/%.png: $(FONTDIR)/const/%.otf
+ misc/tools/fontsample/fontsample -o "$@" "$<"
+
+$(FONTDIR)/samples:
+ mkdir -p $@
+
+
+
# load version, used by zip and dist
VERSION := $(shell cat version.txt)
@@ -223,8 +297,14 @@ build/release/Inter-UI-%.zip: build/tmp/a.zip
@echo write "$@"
@sh -c "if [ -f /usr/bin/open ]; then /usr/bin/open --reveal '$@'; fi"
-zip: ${ZIP_FILE_DEV}
-zip_dist: pre_dist test ${ZIP_FILE_DIST}
+zip: all
+ $(MAKE) check
+ $(MAKE) ${ZIP_FILE_DEV}
+
+zip_dist: pre_dist all
+ $(MAKE) check
+ $(MAKE) ${ZIP_FILE_DIST}
+
.PHONY: zip zip_dist
# distribution
@@ -235,7 +315,8 @@ pre_dist:
exit 1; \
fi
-dist: zip_dist docs
+dist: zip_dist
+ $(MAKE) -j docs
misc/tools/versionize-css.py
@echo "——————————————————————————————————————————————————————————————————"
@echo ""
@@ -309,4 +390,4 @@ install: install_otf
clean:
rm -rvf build/tmp build/fonts
-.PHONY: all web clean install install_otf install_ttf deploy pre_dist dist geninfo test glyphsync
+.PHONY: all web clean install install_otf install_ttf deploy pre_dist dist geninfo glyphsync