-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
74 lines (58 loc) · 1.67 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
65
66
67
68
69
70
71
72
73
74
SOURCE = src/routed-gothic-stroke-source.sfd
ZIP_FILE = dist/routed-gothic-ttf.zip
TTF_FONTS = dist/ttf/routed-gothic.ttf \
dist/ttf/routed-gothic-half-italic.ttf \
dist/ttf/routed-gothic-italic.ttf \
dist/ttf/routed-gothic-narrow.ttf \
dist/ttf/routed-gothic-narrow-half-italic.ttf \
dist/ttf/routed-gothic-narrow-italic.ttf \
dist/ttf/routed-gothic-wide.ttf \
dist/ttf/routed-gothic-wide-half-italic.ttf \
dist/ttf/routed-gothic-wide-italic.ttf
GLYPH_LIST = includes/unicode-coverage.inc.html
GENERATE_SCRIPT = bin/generate-fonts.py
GLYPH_LIST_SCRIPT = bin/make-character-list
FONTS = $(TTF_FONTS)
.PHONY: default
default: ttf zip web
.PHONY: dist
dist: fonts zip
.PHONY: fonts
fonts: ttf
.PHONY: zip
zip: $(ZIP_FILE)
.PHONY: ttf
ttf: $(firstword $(TTF_FONTS))
# single command builds all fonts, only specify first one
###############################################################################
$(TTF_FONTS): $(SOURCE) Makefile $(GENERATE_SCRIPT)
$(GENERATE_SCRIPT)
$(ZIP_FILE): $(TTF_FONTS) Makefile
rm $@ || true
cd dist && zip $(patsubst dist/%, %, $@) $(patsubst dist/%, %, $(TTF_FONTS))
.PHONY: clean
clean:
find . -type f \( \
-name '*.tmp' \
-o -name '*.tmp.*' \
-o -name '#*#' \
-o -name '#~' \
\) -exec rm {} +
.PHONY: superclean
superclean: clean
find dist -type f -exec rm {} +
.PHONY: web
web: coverage sass
.PHONY: sass
sass:
gulp sass
.PHONY: downloads
downloads:
bin/make-downloads
publish:
ssh [email protected] "bash -c 'cd /www/webonastick.com/htdocs/fonts/routed-gothic && git pull'"
.PHONY: coverage
coverage: $(GLYPH_LIST)
$(GLYPH_LIST): $(SOURCE) $(GLYPH_LIST_SCRIPT) Makefile
$(GLYPH_LIST_SCRIPT) $< >$@.tmp
mv $@.tmp $@