forked from fontello/font-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (34 loc) · 943 Bytes
/
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
PREFIX ?= /usr/local
TTF2EOT_BIN := ./support/ttf2eot/ttf2eot
TTFAUTOHINT_BIN := ./support/ttfautohint/frontend/ttfautohint
support:
$(MAKE) $(TTF2EOT_BIN)
$(MAKE) $(TTFAUTOHINT_BIN)
support-install: support
cp $(TTFAUTOHINT_BIN) $(PREFIX)/bin
cp $(TTF2EOT_BIN) $(PREFIX)/bin
$(TTF2EOT_BIN):
cd ./support/ttf2eot \
&& $(MAKE) ttf2eot
$(TTFAUTOHINT_BIN):
git submodule init support/ttfautohint
git submodule update support/ttfautohint
cd ./support/ttfautohint && \
git submodule init && \
git submodule update && \
./bootstrap ; \
./configure --without-qt && \
make
dev-deps:
@if test 0 -ne `id -u` ; then \
echo "root priveledges are required" >&2 ; \
exit 128 ; \
fi
apt-get -qq install \
fontforge python python-fontforge libfreetype6-dev \
python-yaml python-pip \
build-essential \
autoconf automake libtool
pip -q install pystache argparse
.SILENT: dev-deps
.PHONY: support