diff options
author | Praveen Arimbrathodiyil <pravi.a@gmail.com> | 2010-06-09 17:17:18 +0530 |
---|---|---|
committer | Praveen Arimbrathodiyil <pravi.a@gmail.com> | 2010-06-09 17:17:18 +0530 |
commit | c86a23ff962f9a89bbfb6a954107d50fbea22dd5 (patch) | |
tree | afed4bd0e5a00c8212de6534607332524a2b440e | |
parent | 4643060bbd255050d91f7c1774e7c740dca4b540 (diff) | |
download | AnjaliOldLipi.git-c86a23ff962f9a89bbfb6a954107d50fbea22dd5.tar.gz AnjaliOldLipi.git-c86a23ff962f9a89bbfb6a954107d50fbea22dd5.tar.xz AnjaliOldLipi.git-c86a23ff962f9a89bbfb6a954107d50fbea22dd5.zip |
making all operations use fonts variable
-rw-r--r-- | Makefile | 29 |
1 files changed, 27 insertions, 2 deletions
@@ -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 + |