changeset 3658:00549db12332

Add implib to uninstall target.
author Jonathan Schleifer <js@h3c.de>
date Thu, 27 Sep 2007 21:54:10 +0200
parents e83412963c51
children e240bcea4f7a
files src/audacious/Makefile
diffstat 1 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/Makefile	Thu Sep 27 21:36:43 2007 +0200
+++ b/src/audacious/Makefile	Thu Sep 27 21:54:10 2007 +0200
@@ -218,12 +218,25 @@
 
 install-extra:
 	if test x"${PROG_NEED_IMPLIB}" = x"yes"; then \
-		for i in ${LIB}; do \
+		for i in ${PROG}; do \
 			${INSTALL_STATUS}; \
-			if ${MKDIR_P} ${DESTDIR}${libdir} && install -m 644 $$i ${DESTDIR}${libdir}/$$i; then \
+			if ${MKDIR_P} ${DESTDIR}${libdir} && install -m 644 lib$$i.a ${DESTDIR}${libdir}/lib$$i.a; then \
 				${INSTALL_OK}; \
 			else \
 				${INSTALL_FAILED}; \
 			fi \
 		done \
 	fi
+
+uninstall-extra:
+	if test x"${PROG_NEED_IMPLIB}" = x"yes"; then \
+		for i in ${PROG}; do \
+			if test -f ${DESTDIR}${libdir}/lib$$i.a; then \
+				if rm -f ${DESTDIR}${libdir}/lib$$i.a; then
+					${DELETE_OK}; \
+				else \
+					${DELETE_FAILED}; \
+				fi \
+			fi \
+		done \
+	fi