-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathMakefile
More file actions
89 lines (63 loc) · 3.11 KB
/
Copy pathMakefile
File metadata and controls
89 lines (63 loc) · 3.11 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
SHELL := /bin/bash
help:
@echo "###"
@echo "# Build targets for MPLUS"
@echo "###"
@echo
@echo " make build: Builds the fonts and places them in the fonts/ directory"
@echo
#############################################################
#################### venv setup scripts #####################
#############################################################
venv/touchfile: requirements.txt
test -d venv || python3 -m venv venv
. venv/bin/activate; pip install -Ur requirements.txt
touch venv/touchfile
venv: venv/touchfile
#############################################################
################# Source preparation tools ##################
#############################################################
prep_MPLUS1: venv
. venv/bin/activate; fontmake -g sources/MPLUS1/MPLUS-1.glyphs --master-dir sources/MPLUS1/masters -o ufo;
prep_MPLUS2: venv
. venv/bin/activate; fontmake -g sources/MPLUS2/MPLUS-2.glyphs --master-dir sources/MPLUS2/masters -o ufo;
prep_MPLUS3: venv
. venv/bin/activate; fontmake -g sources/MPLUS3/MPLUS-3.glyphs --master-dir sources/MPLUS3/masters -o ufo;
prep_MPLUS1Code: venv
. venv/bin/activate; fontmake -g sources/MPLUS1Code/MPLUS1-code.glyphs --master-dir sources/MPLUS1Code/masters -o ufo;
prep_MPLUSKanji: venv
. venv/bin/activate; fontmake -g sources/MPLUSKanji/MPLUS-kanji.glyphs --master-dir sources/MPLUSKanji/masters -o ufo;
prep_MPLUSU: venv
. venv/bin/activate; fontmake -g sources/MPLUSU/MPLUS-U.glyphs --master-dir sources/MPLUSU/masters -o ufo;
prep: prep_MPLUS1 prep_MPLUS2 prep_MPLUSU prep_MPLUSKanji prep_MPLUS1Code
#############################################################
###################### Compile scripts ######################
#############################################################
compile_MPLUS1: venv
. venv/bin/activate; gftools builder sources/MPLUS1/config.yaml;
compile_MPLUS2: venv
. venv/bin/activate; gftools builder sources/MPLUS2/config.yaml;
compile_MPLUS3: venv
. venv/bin/activate; gftools builder sources/MPLUS3/config.yaml;
compile_MPLUSU: venv
. venv/bin/activate; gftools builder sources/MPLUSU/config.yaml;
compile_MPLUS1Code: venv
. venv/bin/activate; gftools builder sources/MPLUS1Code/config.yaml;
compile_MPLUSCodeLatin: venv
. venv/bin/activate; gftools builder sources/MPLUSCodeLatin/config.yaml;
compile: compile_MPLUS1 compile_MPLUS2 compile_MPLUSU compile_MPLUS1Code compile_MPLUSCodeLatin
#############################################################
####################### Build scripts #######################
#############################################################
merge: venv
. venv/bin/activate; python3 sources/scripts/merge.py;
instancer: venv
. venv/bin/activate; python3 sources/scripts/instancer.py;
clean:
find . -depth -type d -name "masters" -exec rm -rf {} +
find . -depth -type d -name "merged_ufo" -exec rm -rf {} +
find . -depth -type d -name "instances" -exec rm -rf {} +
build: venv clean prep instancer merge compile
#############################################################
######################## Misc scripts #######################
#############################################################