From 4eabd47949778fb8b167f5243f8e8c573b24785a Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Sun, 6 Mar 2011 09:19:21 +0100 Subject: [PATCH] Added install/uninstall targets for plugins --- Makefile | 2 ++ ft/djvu/Makefile | 10 ++++++++++ ft/pdf/Makefile | 10 ++++++++++ 3 files changed, 22 insertions(+) diff --git a/Makefile b/Makefile index 4152c2c..27daaaa 100644 --- a/Makefile +++ b/Makefile @@ -68,9 +68,11 @@ install: all @mkdir -p ${DESTDIR}${MANPREFIX}/man1 @sed "s/VERSION/${VERSION}/g" < ${PROJECT}.1 > ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1 + @make -C ft install uninstall: @echo removing executable file @rm -f ${DESTDIR}${MANPREFIX}/bin/${PROJECT} @echo removing manual page @rm -f ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1 + @make -C ft uninstall diff --git a/ft/djvu/Makefile b/ft/djvu/Makefile index 46f0612..d5e7617 100644 --- a/ft/djvu/Makefile +++ b/ft/djvu/Makefile @@ -39,3 +39,13 @@ clean: @rm -rf ${OBJECTS} ${DOBJECTS} $(PLUGIN).so debug: options ${PLUGIN}-debug + +install: all + @echo installing ${PLUGIN} plugin + @mkdir -p ${DESTDIR}${PREFIX}/lib/zathura + @cp -f ${PLUGIN}.so ${DESTDIR}${PREFIX}/lib/zathura + +uninstall: + @echo uninstalling ${PLUGIN} plugin + @rm -f ${DESTDIR}${PREFIX}/lib/zathura/${PLUGIN}.so + @rm -rf ${DESTDIR}${PREFIX}/lib/zathura diff --git a/ft/pdf/Makefile b/ft/pdf/Makefile index 444888f..e14ed8c 100644 --- a/ft/pdf/Makefile +++ b/ft/pdf/Makefile @@ -39,3 +39,13 @@ clean: @rm -rf ${OBJECTS} ${DOBJECTS} $(PLUGIN).so debug: options ${PLUGIN}-debug + +install: all + @echo installing ${PLUGIN} plugin + @mkdir -p ${DESTDIR}${PREFIX}/lib/zathura + @cp -f ${PLUGIN}.so ${DESTDIR}${PREFIX}/lib/zathura + +uninstall: + @echo uninstalling ${PLUGIN} plugin + @rm -f ${DESTDIR}${PREFIX}/lib/zathura/${PLUGIN}.so + @rm -rf ${DESTDIR}${PREFIX}/lib/zathura