From 130bd32ec990c05a0b5d09870020aa61b6cee1e4 Mon Sep 17 00:00:00 2001 From: Praveen Arimbrathodiyil Date: Wed, 14 Jul 2010 20:51:08 +0530 Subject: added additional checks for fonts directory --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5d06c95..3285396 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ uninstall: if [ -f ${DESTDIR}/etc/fonts/conf.avail/67-malayalam-fonts.conf ]; then \ rm ${DESTDIR}/etc/fonts/conf.avail/67-malayalam-fonts.conf; fi - if [ -d ${DESTDIR}/${fontpath} ]; then rmdir ${DESTDIR}/${fontpath}; fi + if [ -d ${DESTDIR}/${fontpath} -a -z "$(ls -A ${DESTDIR}/${fontpath})" ] ; then rmdir ${DESTDIR}/${fontpath}; fi clean: # remove ttf fonts -- cgit