forked from MihailJP/Inconsolata-LGC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (47 loc) · 1.5 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
# Makefile for Inconsolata font
FONTS=Inconsolata-LGC.ttf \
Inconsolata-LGC-Bold.ttf \
Inconsolata-LGC-Italic.ttf \
Inconsolata-LGC-BoldItalic.ttf
OTFONTS=${FONTS:.ttf=.otf}
DOCUMENTS=README ChangeLog LICENSE
PKGS=InconsolataLGC.tar.xz InconsolataLGC-OT.tar.xz
FFCMD=for i in $?;do fontforge -lang=ff -c "Open(\"$$i\");Generate(\"$@\");Close()";done
TTFPKGCMD=rm -rf $*; mkdir $*; cp ${FONTS} ${DOCUMENTS} $*
OTFPKGCMD=rm -rf $*; mkdir $*; cp ${OTFONTS} ${DOCUMENTS} $*
.PHONY: all
all: ttf otf
.SUFFIXES: .sfd .ttf .otf
.sfd.ttf:
${FFCMD}
.sfd.otf:
${FFCMD}
.PHONY: ttf otf
ttf: ${FONTS}
otf: ${OTFONTS}
.SUFFIXES: .tar.xz .tar.gz .tar.bz2 .zip
.PHONY: dist
dist: ${PKGS}
InconsolataLGC.tar.xz: ${FONTS} ${DOCUMENTS}
${TTFPKGCMD}; tar cfvJ $@ $*
InconsolataLGC.tar.gz: ${FONTS} ${DOCUMENTS}
${TTFPKGCMD}; tar cfvz $@ $*
InconsolataLGC.tar.bz2: ${FONTS} ${DOCUMENTS}
${TTFPKGCMD}; tar cfvj $@ $*
InconsolataLGC.zip: ${FONTS} ${DOCUMENTS}
${TTFPKGCMD}; zip -9r $@ $*
InconsolataLGC-OT.tar.xz: ${OTFONTS} ${DOCUMENTS}
${OTFPKGCMD}; tar cfvJ $@ $*
InconsolataLGC-OT.tar.gz: ${OTFONTS} ${DOCUMENTS}
${OTFPKGCMD}; tar cfvz $@ $*
InconsolataLGC-OT.tar.bz2: ${OTFONTS} ${DOCUMENTS}
${OTFPKGCMD}; tar cfvj $@ $*
InconsolataLGC-OT.zip: ${OTFONTS} ${DOCUMENTS}
${OTFPKGCMD}; zip -9r $@ $*
ChangeLog: .git # GIT
./mkchglog.rb > $@ # GIT
.PHONY: clean
clean:
-rm -f ${FONTS} ${OTFONTS} ChangeLog
-rm -rf ${PKGS} ${PKGS:.tar.xz=} ${PKGS:.tar.xz=.tar.bz2} \
${PKGS:.tar.xz=.tar.gz} ${PKGS:.tar.xz=.zip}