-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
44 lines (35 loc) · 1.19 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
help:
@echo "###"
@echo "# Build targets for WenKai TC"
@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
venv: venv/touchfile
extract: venv
. venv/bin/activate; python3 sources/scripts/extract.py;
compress: venv
. venv/bin/activate; python3 sources/scripts/compress.py;
merge:
. venv/bin/activate; python3 sources/scripts/merge.py;
export:
. venv/bin/activate; gftools builder sources/project.yaml;
build: venv extract merge export
. venv/bin/activate; python3 sources/scripts/post.py;
converter:
glyphs2ufo sources/LXGWWenKaiMonoTC-Bold.glyphs
glyphs2ufo sources/LXGWWenKaiMonoTC-Regular.glyphs
glyphs2ufo sources/LXGWWenKaiMonoTC-Light.glyphs
glyphs2ufo sources/LXGWWenKaiTC-Bold.glyphs
glyphs2ufo sources/LXGWWenKaiTC-Regular.glyphs
glyphs2ufo sources/LXGWWenKaiTC-Light.glyphs
venv/touchfile: requirements.txt
test -d venv || python3 -m venv venv
. venv/bin/activate; pip install -Ur requirements.txt
touch venv/touchfile
clean:
rm -rf venv
find -iname "*.ufo" -delete
find -iname "*.pyc" -delete