-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
92 lines (72 loc) · 2.23 KB
/
Makefile
File metadata and controls
92 lines (72 loc) · 2.23 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
90
91
92
.PHONY: default
default: ttf zip web
SRC_BASEFONT = src/basefont
DIST_TTF = dist/ttf
SUPPORT_BIN = support/bin
DIST_ZIP = dist/zip
FONT_PACKAGE_NAME = RoutedGothic
VERSION = 1.0.0
SFNT_REVISION = 001.000
# XXX.YZZ, typically
VENDOR = DARN
COPYRIGHT_OWNER = Darren Embry
COPYRIGHT_EMAIL = dsembry@gmail.com
SOURCE = $(SRC_BASEFONT)/routed-gothic-stroke-source.sfd
ZIP_FILE = $(DIST_ZIP)/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 = public/includes/unicode-coverage.inc.html
GENERATE_SCRIPT = $(SUPPORT_BIN)/generate-fonts.py
GLYPH_LIST_SCRIPT = $(SUPPORT_BIN)/make-character-list
FONTS = $(TTF_FONTS)
.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 font
###############################################################################
$(TTF_FONTS): $(SOURCE) Makefile $(GENERATE_SCRIPT)
$(GENERATE_SCRIPT)
$(ZIP_FILE): $(TTF_FONTS) Makefile
rm $@ || true
mkdir -p $(DIST_ZIP)
cd $(DIST_ZIP) && zip $(patsubst $(DIST_ZIP)/%, %, $@) $(patsubst $(DIST_ZIP)/%, %, $(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:
npm run build
.PHONY: downloads
downloads:
$(SUPPORT_BIN)/make-downloads
publish:
mkdir -p public/fonts/routed-gothic/dist/ttf
cp dist/ttf/* public/fonts/routed-gothic/dist/ttf
ssh dse@webonastick.com "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 $@