summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraveen Arimbrathodiyil <pravi.a@gmail.com>2010-06-09 17:17:18 +0530
committerPraveen Arimbrathodiyil <pravi.a@gmail.com>2010-06-09 17:17:18 +0530
commit645370de418f652a8fb4ac40d4d354101a533f6d (patch)
treec7ca088fed19375328ec86e2a073e71cac5182e4
parent6d51800d426fef2036e3612b9e2659200357ee28 (diff)
downloadAnjaliOldLipi.git-645370de418f652a8fb4ac40d4d354101a533f6d.zip
AnjaliOldLipi.git-645370de418f652a8fb4ac40d4d354101a533f6d.tar.gz
AnjaliOldLipi.git-645370de418f652a8fb4ac40d4d354101a533f6d.tar.xz
making all operations use fonts variable4.3
-rw-r--r--fonts/Makefile29
1 files changed, 27 insertions, 2 deletions
diff --git a/fonts/Makefile b/fonts/Makefile
index 145a433..d7157a1 100644
--- a/fonts/Makefile
+++ b/fonts/Makefile
@@ -1,2 +1,27 @@
-deault:
- ./generate.pe Dyuthi/Dyuthi.sfd Kalyani/Kalyani.sfd Meera/Meera.sfd Rachana/Rachana.sfd \ No newline at end of file
+fontpath=/usr/share/fonts/truetype/malayalam
+fonts="AnjaliOldLipi Dyuthi Kalyani Meera Rachana RaghuMalayalamSans suruma"
+
+default:
+ @for font in `echo ${fonts}`; \
+ do \
+ ./generate.pe $${font}/$${font}.sfd; done
+
+install: */*.ttf
+ @for font in `echo ${fonts}`; \
+ do \
+ install -D -m 0644 $${font}/$${font}.ttf ${fontpath}/$${font}.ttf; done
+
+uninstall:
+ @for font in `echo ${fonts}`; \
+ do \
+ if [ -f ${fontpath}/$${font}.ttf ]; then rm -f ${fontpath}/$${font}.ttf; fi \
+ done
+
+ if [ -d ${fontpath} ]; then rmdir ${fontpath}; fi
+
+clean:
+ @for font in `echo ${fonts}`; \
+ do \
+ if [ -f $${font}/$${font}.ttf ]; then rm -f $${font}/$${font}.ttf; fi \
+ done
+