From 4cdf2dde37ae3643a95cabef2321ffaa8b17a941 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sat, 13 Oct 2007 10:24:53 +0200 Subject: [PATCH] Make ${plugindir} independent from ${libdir}. --- buildsys.mk.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/buildsys.mk.in b/buildsys.mk.in index 8881bf5..e2a3adc 100644 --- a/buildsys.mk.in +++ b/buildsys.mk.in @@ -58,7 +58,7 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ -plugindir ?= ${PACKAGE} +plugindir ?= ${libdir}/${PACKAGE} datarootdir = @datarootdir@ datadir = @datadir@ includedir = @includedir@ @@ -221,7 +221,7 @@ install: ${LIB} ${STATIC_LIB} ${PLUGIN} ${PROG} install-extra for i in ${PLUGIN}; do \ ${INSTALL_STATUS}; \ - if ${MKDIR_P} ${DESTDIR}${libdir}/${plugindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/${plugindir}/$$i; then \ + if ${MKDIR_P} ${DESTDIR}${plugindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${plugindir}/$$i; then \ ${INSTALL_OK}; \ else \ ${INSTALL_FAILED}; \ @@ -294,15 +294,15 @@ uninstall: uninstall-extra done for i in ${PLUGIN}; do \ - if test -f ${DESTDIR}${libdir}/${plugindir}/$$i; then \ - if rm -f ${DESTDIR}${libdir}/${plugindir}/$$i; then \ + if test -f ${DESTDIR}${plugindir}/$$i; then \ + if rm -f ${DESTDIR}${plugindir}/$$i; then \ ${DELETE_OK}; \ else \ ${DELETE_FAILED}; \ fi \ fi \ done - -rmdir ${DESTDIR}${libdir}/${plugindir} >/dev/null 2>&1 + -rmdir ${DESTDIR}${plugindir} >/dev/null 2>&1 for i in ${DATA}; do \ if test -f ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \