-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
51 lines (39 loc) · 1.44 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
# Makefile for MarathiCursive font
FONTS=MarathiCursive.otf MarathiCursiveT.ttf MarathiCursiveG.ttf
DOCUMENTS=License.txt README
SOURCE=MarathiCursive.sfd outlines.py truetype.py Makefile MarathiCursiveG.gdl
PKGS=MarathiCursive.tar.xz MarathiCursive-source.tar.xz
# Path to Graphite compiler
# On Windows (Cygwin) uncomment:
#GRCOMPILER=/cygdrive/c/Program\ Files/Graphite\ Compiler/GrCompiler
# For systems other than Windows:
GRCOMPILER=wine ~/.wine/drive_c/Program\ Files/Graphite\ Compiler/GrCompiler.exe
.PHONY: all
all: ${FONTS}
Outlines.sfd: MarathiCursive.sfd
fontforge -script ./outlines.py
OutlinesTT.sfd: Outlines.sfd
fontforge -script ./truetype.py
MarathiCursive.otf: Outlines.sfd
for i in $?;do fontforge -lang=ff -c "Open(\"$$i\");SelectWorthOutputting();UnlinkReference();RemoveOverlap();Generate(\"$@\");Close()";done
MarathiCursiveT.ttf: OutlinesTT.sfd
for i in $?;do fontforge -lang=ff -c "Open(\"$$i\");Generate(\"$@\");Close()";done
MarathiCursiveG.ttf: MarathiCursiveT.ttf MarathiCursiveG.gdl
$(GRCOMPILER) $^ $@ "MarathiCursiveG"
.SUFFIXES: .tar.xz
.PHONY: dist
dist: ${PKGS}
MarathiCursive.tar.xz: ${FONTS} ${DOCUMENTS}
-rm -rf $*
mkdir $*
cp ${FONTS} ${DOCUMENTS} $*
tar -cJf $@ $*
MarathiCursive-source.tar.xz: ${SOURCE} ${DOCUMENTS}
-rm -rf $*
mkdir $*
cp ${SOURCE} ${DOCUMENTS} $*
tar -cJf $@ $*
.PHONY: clean
clean:
-rm Outlines.sfd OutlinesTT.sfd gdlerr.txt '$$_temp.gdl' ${FONTS}
-rm -rf ${PKGS} ${PKGS:.tar.xz=}