'make uninstall' should remove the 'plugin' directory only if it's
empty.

Also, this patch adds .gitignore file.

Signed-off-by: Pavel Borzenkov <pavel.borzen...@gmail.com>
---
 .gitignore |    4 ++++
 Makefile   |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
 create mode 100644 .gitignore

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d18b866
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.o
+*~
+.depend
+pdf.so
diff --git a/Makefile b/Makefile
index 9eab7b0..72cb4c6 100644
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,7 @@ install: all
 uninstall:
        @echo uninstalling ${PLUGIN} plugin
        @rm -f ${DESTDIR}${PREFIX}/lib/zathura/${PLUGIN}.so
-       @rm -rf ${DESTDIR}${PREFIX}/lib/zathura
+       @rmdir ${DESTDIR}${PREFIX}/lib/zathura 2> /dev/null || /bin/true
 
 -include $(wildcard .depend/*.dep)
 
-- 
1.7.0.4

_______________________________________________
zathura mailing list
zathura@lists.pwmt.org
http://lists.pwmt.org/mailman/listinfo/zathura

Reply via email to