summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2022-09-19 01:03:05 +0300
committerRasmus Andersson <rasmus@notion.se>2022-09-19 01:03:05 +0300
commitde106bc83a3d2672f435906f0e3efb20c408f583 (patch)
treea60f3a2509799b7d706a8b4edbc03b96c04cf64d /Makefile
parent6bd4dd6b77242a83761e0807a4f4ce3036f0b4e1 (diff)
downloadinter-de106bc83a3d2672f435906f0e3efb20c408f583.tar.xz
use ttfautohint with python -m instead of by path to script. Closes #470
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7f7cbfa82..60d8770e6 100644
--- a/Makefile
+++ b/Makefile
@@ -113,8 +113,7 @@ $(FONTDIR)/static/%.ttf: $(UFODIR)/%.ufo | $(FONTDIR)/static venv
--overlaps-backend pathops --production-names
$(FONTDIR)/static-hinted/%.ttf: $(FONTDIR)/static/%.ttf | $(FONTDIR)/static-hinted venv
- . $(VENV) ; python $(PWD)/build/venv/lib/python/site-packages/ttfautohint \
- --no-info "$<" "$@"
+ . $(VENV) ; python -m ttfautohint --no-info "$<" "$@"
$(FONTDIR)/var/Inter-V.var.ttf: $(FONTDIR)/var/Inter.var.ttf venv
. $(VENV) ; python misc/tools/rename.py --family "Inter V" -o $@ $<
@@ -456,8 +455,6 @@ build/venv/config.stamp: requirements.txt
@mkdir -p build
test -d build/venv || python3 -m venv build/venv
. $(VENV) ; pip install -Ur requirements.txt
- rm -f build/venv/lib/python
- ln -sf $$(basename $$(readlink build/venv/bin/python)) build/venv/lib/python
touch $@
reset: clean