multipath-tools: uninstall libraries correctly
authorBenjamin Marzinski <bmarzins@redhat.com>
Mon, 3 Aug 2009 22:01:33 +0000 (17:01 -0500)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Tue, 4 Aug 2009 21:34:15 +0000 (23:34 +0200)
The unistall action for checker libraries doesn't work. Also, the uninstall
action for the prioritizer libraries runs the risk of uninstalling something
that we didn't install.  This patch changes them to correctly uninstall the
files listed in LIBS.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/checkers/Makefile
libmultipath/prioritizers/Makefile

index 22fe82c..d4d0d2b 100644 (file)
@@ -27,7 +27,7 @@ install:
        $(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(libdir)
 
 uninstall:
-       rm -f $(DESTDIR)$(libdir)/$(LIBS)
+       for file in $(LIBS); do rm -f $(DESTDIR)$(libdir)/$$file; done
 
 clean:
        rm -f core *.a *.o *.gz *.so
index 1f70ef1..949a60a 100644 (file)
@@ -28,7 +28,7 @@ install: $(LIBS)
        $(INSTALL_PROGRAM) -m 755 libprio*.so $(DESTDIR)$(libdir)
 
 uninstall:
-       rm -f $(DESTDIR)$(libdir)/libprio*.so
+       for file in $(LIBS); do rm -f $(DESTDIR)$(libdir)/$$file; done
 
 clean:
        rm -f core *.a *.o *.gz *.so