summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanthosh Thottingal <santhosh.thottingal@gmail.com>2014-11-27 19:27:52 +0530
committerSanthosh Thottingal <santhosh.thottingal@gmail.com>2014-11-27 19:27:52 +0530
commitc2204a570f4c0abbf43a2a4944f9f89d51a5299d (patch)
treee7acee3cd560a5d2399bec5c1b75d8f41f76fd9f
parentc2fc711f869047a3ebd97f3381ab5518d63df8e2 (diff)
downloadAnjaliOldLipi.git-c2204a570f4c0abbf43a2a4944f9f89d51a5299d.zip
AnjaliOldLipi.git-c2204a570f4c0abbf43a2a4944f9f89d51a5299d.tar.gz
AnjaliOldLipi.git-c2204a570f4c0abbf43a2a4944f9f89d51a5299d.tar.xz
Add Makefile
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..dac61fa
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+fontpath=/usr/share/fonts/truetype/malayalam
+font=AnjaliOldLipi
+
+default: compile
+all: compile webfonts
+
+compile:
+ @echo "Generating ${font}.ttf"
+ @fontforge -lang=ff -c "Open('${font}.sfd'); Generate('${font}.ttf')";
+
+webfonts:compile
+ @echo "Generating webfonts";
+ @sfntly -w ${font}.ttf ${font}.woff;
+ @sfntly -e -x ${font}.ttf ${font}.eot;
+ @[ -x `which woff2_compress` ] && woff2_compress ${font}.ttf;
+
+install: compile
+ @install -D -m 0644 ${font}.ttf ${DESTDIR}/${fontpath}/$${font}.ttf;