Added install/uninstall targets for plugins

This commit is contained in:
Moritz Lipp 2011-03-06 09:19:21 +01:00
parent dc660d2c56
commit 4eabd47949
3 changed files with 22 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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