summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRajeesh K Nambiar <rajeeshknambiar@gmail.com>2014-12-02 20:16:15 +0100
committerRajeesh K Nambiar <rajeeshknambiar@gmail.com>2014-12-02 20:16:15 +0100
commit2bd9e8667125e905b3196b55147aef121bbc48f1 (patch)
tree7416da5715f1b2199803630716fa702de76b3bc9 /Makefile
parent22fbcd4b4d111e45b8cfbf6472d57779c813dd5d (diff)
parent8e1e7c4e69ca4968c361c5863a99167f3a286c26 (diff)
downloadRachana.git-2bd9e8667125e905b3196b55147aef121bbc48f1.tar.gz
Rachana.git-2bd9e8667125e905b3196b55147aef121bbc48f1.tar.xz
Rachana.git-2bd9e8667125e905b3196b55147aef121bbc48f1.zip
Merge branch 'master' of github.com:smc/Rachana
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4c2e8d2
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+fontpath=/usr/share/fonts/truetype/malayalam
+font=Rachana
+
+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;