summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2023-05-30 19:35:11 +0300
committerRasmus Andersson <rasmus@notion.se>2023-05-30 19:35:11 +0300
commit9ef2d5084bb5ff6e7d2b4dabd5fb5bb4d102e9f3 (patch)
treef80a258587ea36323032a1b4212f1c3e557219bf /Makefile
parente12027c4c107731fd33823578fd7ca5107d38b8f (diff)
downloadinter-9ef2d5084bb5ff6e7d2b4dabd5fb5bb4d102e9f3.tar.xz
tooling: fix .ttc makefile rule
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 596c637c7..ae6b8e7f4 100644
--- a/Makefile
+++ b/Makefile
@@ -231,7 +231,7 @@ var_web: \
web: var_web static_web
static: \
- $(FONTDIR)/static/Inter.ttc
+ $(FONTDIR)/static-hinted/Inter.ttc
$(FONTDIR)/static/Inter.otc: \
$(FONTDIR)/static/Inter-Regular.otf \
@@ -632,7 +632,9 @@ dist_postflight:
INSTALLDIR := $(HOME)/Library/Fonts/Inter
-install: install_var $(INSTALLDIR)/Inter.ttc
+install: install_var $(INSTALLDIR)/Inter.ttc | install_clean_otf
+
+install_clean_otf:
@# Remove any old pre-ttc fonts
rm -rf $(INSTALLDIR)/Inter*.otf
@@ -640,10 +642,10 @@ install_var: \
$(INSTALLDIR)/InterV.var.ttf \
$(INSTALLDIR)/InterV-Italic.var.ttf
-$(INSTALLDIR)/%.ttc: $(FONTDIR)/static/%.ttc | $(INSTALLDIR)
+$(INSTALLDIR)/%.ttc: $(FONTDIR)/static-hinted/%.ttc | $(INSTALLDIR)
cp -a $^ $@
-$(INSTALLDIR)/%.otc: $(FONTDIR)/static/%.ttc | $(INSTALLDIR)
+$(INSTALLDIR)/%.otc: $(FONTDIR)/static/%.otc | $(INSTALLDIR)
cp -a $^ $@
$(INSTALLDIR)/%.otf: $(FONTDIR)/static/%.otf | $(INSTALLDIR)
@@ -655,7 +657,7 @@ $(INSTALLDIR)/%.var.ttf: $(FONTDIR)/var/%.var.ttf | $(INSTALLDIR)
$(INSTALLDIR):
mkdir -p $@
-.PHONY: install install_var
+.PHONY: install install_var install_clean_otf
# ---------------------------------------------------------------------------------
# misc