From 4ab5b20654abb3990017aaffabe88253ddf70711 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 3 Oct 2007 10:48:27 +0000 Subject: [PATCH] Arrange for "make clean" to remove the symlink, too. * make.tmpl.in ($(VERSIONED_SHLIB)): Move rule to... * lib/Makefile.in ($(VERSIONED_SHLIB)): ...here, removing the $(interface)/ prefix. Reported by Milan Broz. Author: Jim Meyering --- libdm/Makefile.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libdm/Makefile.in b/libdm/Makefile.in index 1e0a017d3..f1939bc4e 100644 --- a/libdm/Makefile.in +++ b/libdm/Makefile.in @@ -41,7 +41,7 @@ ifeq ("@LIB_SUFFIX@","dylib") else LIB_SHARED = $(interface)/libdevmapper.so endif -VERSIONED_SHLIB = $(interface)/libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION) +VERSIONED_SHLIB = libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION) DEFS += -DDEVICE_UID=@DEVICE_UID@ -DDEVICE_GID=@DEVICE_GID@ \ -DDEVICE_MODE=@DEVICE_MODE@ @@ -87,10 +87,13 @@ install_ioctl_static: ioctl/libdevmapper.a $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \ $(libdir)/libdevmapper.a.$(LIB_VERSION) +$(VERSIONED_SHLIB): %.$(LIB_SUFFIX).$(LIB_VERSION): $(interface)/%.$(LIB_SUFFIX) + rm -f $@ + $(LN_S) $< $@ + .PHONY: distclean_lib distclean -distclean_lib: +distclean_lib: $(RM) libdevmapper.pc distclean: distclean_lib -