-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
34 lines (25 loc) · 1013 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SOURCES=$(shell yq e '.sources.[] | sub("^","sources/")' sources/cairo.yaml )
FAMILY=$(shell yq e '.familyName' sources/cairo.yaml )
help:
@echo "###"
@echo "# Build targets for $(FAMILY)"
@echo "###"
@echo
@echo " make build: Builds the fonts and places them in the fonts/ directory"
@echo " make test: Tests the fonts with fontbakery"
@echo " make proof: Creates HTML proof documents in the proof/ directory"
@echo
build: build.stamp
venv: venv/touchfile
build.stamp: venv
. venv/bin/activate; sh build.sh && touch build.stamp
venv/touchfile: requirements.txt
test -d venv || python3 -m venv venv
. venv/bin/activate; pip install -Ur requirements.txt
touch venv/touchfile
test: venv build.stamp
. venv/bin/activate; fontbakery check-googlefonts --html fontbakery-report.html --ghmarkdown fontbakery-report.md $(shell find fonts -type f)
proof: venv build.stamp
. venv/bin/activate; gftools gen-html proof $(shell find fonts/Cairo*/variable -type f) -o proof
clean:
rm venv/touchfile