Make ${plugindir} independent from ${libdir}.

This commit is contained in:
Jonathan Schleifer 2007-10-13 10:24:53 +02:00
parent 090adf4087
commit 4cdf2dde37

View file

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