summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanthosh Thottingal <santhosh.thottingal@gmail.com>2014-11-25 19:30:37 +0530
committerSanthosh Thottingal <santhosh.thottingal@gmail.com>2014-11-25 19:30:37 +0530
commitd4ddeb1ccfe2040b690a4625a281bd3a369fff80 (patch)
tree6c563193d62d293647e462f64530f2647b560664
parentb3b6b33f065bfc4135e005c48117dc98347b3753 (diff)
downloadRachana.git-d4ddeb1ccfe2040b690a4625a281bd3a369fff80.tar.gz
Rachana.git-d4ddeb1ccfe2040b690a4625a281bd3a369fff80.tar.xz
Rachana.git-d4ddeb1ccfe2040b690a4625a281bd3a369fff80.zip
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..7f1f657
--- /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;