1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

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 <meyering@redhat.com>
This commit is contained in:
Jim Meyering 2007-10-03 10:48:27 +00:00
parent 0fc5422941
commit 4ab5b20654

View File

@ -41,7 +41,7 @@ ifeq ("@LIB_SUFFIX@","dylib")
else else
LIB_SHARED = $(interface)/libdevmapper.so LIB_SHARED = $(interface)/libdevmapper.so
endif 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@ \ DEFS += -DDEVICE_UID=@DEVICE_UID@ -DDEVICE_GID=@DEVICE_GID@ \
-DDEVICE_MODE=@DEVICE_MODE@ -DDEVICE_MODE=@DEVICE_MODE@
@ -87,10 +87,13 @@ install_ioctl_static: ioctl/libdevmapper.a
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \ $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
$(libdir)/libdevmapper.a.$(LIB_VERSION) $(libdir)/libdevmapper.a.$(LIB_VERSION)
$(VERSIONED_SHLIB): %.$(LIB_SUFFIX).$(LIB_VERSION): $(interface)/%.$(LIB_SUFFIX)
rm -f $@
$(LN_S) $< $@
.PHONY: distclean_lib distclean .PHONY: distclean_lib distclean
distclean_lib: distclean_lib:
$(RM) libdevmapper.pc $(RM) libdevmapper.pc
distclean: distclean_lib distclean: distclean_lib