From d4ddeb1ccfe2040b690a4625a281bd3a369fff80 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Tue, 25 Nov 2014 19:30:37 +0530 Subject: Add Makefile --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile 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; -- cgit From 8e1e7c4e69ca4968c361c5863a99167f3a286c26 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Sun, 30 Nov 2014 15:29:25 +0530 Subject: Correct the install instruction --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7f1f657..4c2e8d2 100644 --- a/Makefile +++ b/Makefile @@ -17,4 +17,4 @@ webfonts:compile @[ -x `which woff2_compress` ] && woff2_compress ${font}.ttf; install: compile - @install -D -m 0644 ${font}.ttf ${DESTDIR}/${fontpath}/$${font}.ttf; + @install -D -m 0644 ${font}.ttf ${DESTDIR}/${fontpath}/${font}.ttf; -- cgit