-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
63 lines (48 loc) · 1.71 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
# Makefile for Muktamsiddham font
FONTS=Muktamsiddham.otf MuktamsiddhamT.ttf MuktamsiddhamG.ttf
DOCUMENTS=license.txt README.md ChangeLog NEWS
SOURCE=Muktamsiddham.sfd LatinGlyphs.sfd outlines.py truetype.py Muktamsiddham.gdl Makefile
PKGS=Muktamsiddham.tar.xz Muktamsiddham-source.tar.xz
FFCMD=for i in $?;do fontforge -lang=ff -c "Open(\"$$i\");Generate(\"$@\");Close()";done
PKGCMD=rm -rf $*; mkdir $*; cp $^ $*
# Path to Graphite compiler
GRCOMPILER=grcompiler
.PHONY: all
all: ${FONTS}
Outlines.sfd: Muktamsiddham.sfd LatinGlyphs.sfd
fontforge -script ./outlines.py
OutlinesTT.sfd: Outlines.sfd
fontforge -script ./truetype.py
Muktamsiddham.otf: Outlines.sfd
${FFCMD}
MuktamsiddhamT.ttf: OutlinesTT.sfd
${FFCMD}
MuktamsiddhamG.ttf: MuktamsiddhamT.ttf Muktamsiddham.gdl
${GRCOMPILER} $^ $@ "MuktamsiddhamG"
.SUFFIXES: .tar.xz .tar.gz .tar.bz2 .zip
.PHONY: dist
dist: ${PKGS}
Muktamsiddham.tar.xz: ${FONTS} ${DOCUMENTS}
${PKGCMD}; tar cfvJ $@ $*
Muktamsiddham.tar.gz: ${FONTS} ${DOCUMENTS}
${PKGCMD}; tar cfvz $@ $*
Muktamsiddham.tar.bz2: ${FONTS} ${DOCUMENTS}
${PKGCMD}; tar cfvj $@ $*
Muktamsiddham.zip: ${FONTS} ${DOCUMENTS}
${PKGCMD}; zip -9r $@ $*
Muktamsiddham-source.tar.xz: ${SOURCE} ${DOCUMENTS}
${PKGCMD}; tar cfvJ $@ $*
Muktamsiddham-source.tar.gz: ${SOURCE} ${DOCUMENTS}
${PKGCMD}; tar cfvz $@ $*
Muktamsiddham-source.tar.bz2: ${SOURCE} ${DOCUMENTS}
${PKGCMD}; tar cfvj $@ $*
Muktamsiddham-source.zip: ${SOURCE} ${DOCUMENTS}
${PKGCMD}; zip -9r $@ $*
ChangeLog: .git # GIT
./mkchglog.rb > $@ # GIT
.PHONY: clean
clean:
-rm -f Outlines.sfd OutlinesTT.sfd \
gdlerr.txt '$$_temp.gdl' ${FONTS} ChangeLog
-rm -rf ${PKGS} ${PKGS:.tar.xz=} ${PKGS:.tar.xz=.tar.bz2} \
${PKGS:.tar.xz=.tar.gz} ${PKGS:.tar.xz=.zip}