-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
64 lines (45 loc) · 1.41 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
BASE_R = shantellsans-wght_ital_INFM
GLYPHSPKG = sources/shantellsans-wght_ital_INFM.glyphspackage
PREPDIR = sources/build-prep
GLYPHS = $(PREPDIR)/shantellsans-wght_ital_INFM.glyphs
UFOPREPDIR = $(PREPDIR)/ital_wght_BNCE_INFM_SPAC--prepped
VF = fonts/Shantell\ Sans/Desktop/ShantellSans\[BNCE,INFM,SPAC,ital,wght\].ttf
STATICS = fonts/Shantell\ Sans/Desktop/Static/TTF
# ------------------------------------
# phony commands
# most of the time, it’s best to just build the variable font
.PHONY: all
all: $(VF) $(GF)
# if you really want all the fonts (variable and static), run 'make full'
.PHONY: full
full: $(VF) $(STATICS) $(GF)
# just builds variable font (including special version for google fonts)
.PHONY: vf
vf: $(VF)
# only build the statics, e.g. after you have already built the VF
.PHONY: statics
statics: $(STATICS)
# only make the prepped dir
.PHONY: prep
prep: $(UFOPREPDIR)
# just change to a glyphs file
.PHONY: glyphs
glyphs: $(GLYPHS)
# ------------------------------------
# commands
$(STATICS): $(UFOPREPDIR)
scripts--build/build-static.sh
scripts--build/make-release.sh
$(VF): $(UFOPREPDIR)
scripts--build/build-vf.sh
$(UFOPREPDIR): $(GLYPHS)
python scripts--build/prep-build.py
$(GLYPHS): $(PREPDIR)
glyphspkg $(GLYPHSPKG)
mv sources/shantellsans-wght_ital_INFM.glyphs $(GLYPHS)
$(PREPDIR): $(GLYPHSPKG)
mkdir -p $(PREPDIR)
.PHONY: clean
clean:
rm -rf $(PREPDIR)
rm -rf fonts/Shantell\ Sans