summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2022-05-27 23:44:19 +0300
committerRasmus Andersson <rasmus@notion.se>2022-05-27 23:44:19 +0300
commit4b691a7cc45917e0df0f90412062098b1e52f336 (patch)
tree03d6c5031c85d97208b45b793fb6ddeb533f7916 /Makefile
parent05dd794823b3d2292fa2ae52afb4e262cde2d59f (diff)
downloadinter-4b691a7cc45917e0df0f90412062098b1e52f336.tar.xz
change source format from .glyphs to .glyphspackage
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2c218464e..7f2a15f1e 100644
--- a/Makefile
+++ b/Makefile
@@ -14,9 +14,12 @@ default: all
# intermediate sources
# short-circuit Make for performance
-src/Inter.glyphs:
+src/Inter.glyphspackage:
@true
+$(UFODIR)/Inter.glyphs: src/Inter.glyphspackage | $(UFODIR)
+ $(BIN)/python3 build/venv/bin/glyphspkg -o $(dir $@) $^
+
# features
src/features: $(wildcard src/features/*)
@touch "$@"
@@ -30,7 +33,7 @@ $(UFODIR)/Inter-roman.designspace: $(UFODIR)/Inter.designspace
$(BIN)/python3 misc/tools/subset-designspace.py $^ $@
$(UFODIR)/Inter-italic.designspace: $(UFODIR)/Inter.designspace
$(BIN)/python3 misc/tools/subset-designspace.py $^ $@
-$(UFODIR)/%.designspace: src/%.glyphs $(UFODIR)/features
+$(UFODIR)/%.designspace: $(UFODIR)/%.glyphs $(UFODIR)/features
$(BIN)/fontmake -o ufo -g $< --designspace-path $@ \
--master-dir $(UFODIR) --instance-dir $(UFODIR)
$(BIN)/python3 misc/tools/postprocess-designspace.py $@
@@ -142,6 +145,8 @@ $(FONTDIR)/static-hinted:
mkdir -p $@
$(FONTDIR)/var:
mkdir -p $@
+$(UFODIR):
+ mkdir -p $@
static_otf: \
$(FONTDIR)/static/Inter-Black.otf \