summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajeesh K Nambiar <rajeeshknambiar@gmail.com>2014-12-02 20:01:15 +0100
committerRajeesh K Nambiar <rajeeshknambiar@gmail.com>2014-12-02 20:01:15 +0100
commitb9ca9421613bbe6671c4f66c9d85900f927e198c (patch)
tree6a32eec60535254d2cba9a6ac685e64af9c6c328
parent61715c8b4ff0b35d23098a9d5f1cc33b02eacbf1 (diff)
parent8fa90180075f3117f2651a2c18c541c27bce1ea1 (diff)
downloadAnjaliOldLipi.git-master.zip
AnjaliOldLipi.git-master.tar.gz
AnjaliOldLipi.git-master.tar.xz
Merge branch 'master' of github.com:smc/AnjaliOldLipiHEADmaster
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c19369c
--- /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;