diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -1,6 +1,9 @@ FONT_NAME=Putnik FONT_VERSION=$(shell git describe --abbrev=4) RELEASE=$(FONT_NAME)-$(FONT_VERSION) +PYTHON=/usr/bin/python +VENV_BIN=venv/bin +FONTMAKE=$(VENV_BIN)/fontmake OUT_DIR=fonts UFO_SRC=sources/$(FONT_NAME).ufo TTF=fonts/ttf/$(FONT_NAME).ttf @@ -8,13 +11,17 @@ OTF=fonts/otf/$(FONT_NAME).otf all: ttf otf -ttf: $(TTF) +venv: + $(PYTHON) -m venv venv + $(VENV_BIN)/pip install -r requirements.txt + +ttf: venv $(TTF) $(TTF): $(UFO_SRC) - fontmake -u $(UFO_SRC) -o ttf --output-dir fonts/ttf/ + $(FONTMAKE) -u $(UFO_SRC) -o ttf --output-dir fonts/ttf/ -otf: $(OTF) +otf: venv $(OTF) $(OTF): $(UFO_SRC) - fontmake -u $(UFO_SRC) -o otf --output-dir fonts/otf/ + $(FONTMAKE) -u $(UFO_SRC) -o otf --output-dir fonts/otf/ release: release-tar release-zip @@ -27,4 +34,4 @@ release-zip: ttf otf clean: -rm $(TTF) $(OTF) $(RELEASE).* -.PHONY: all release clean +.PHONY: all release venv clean |
