[lvm-devel] [PATCH 4/5] Add liblvm dynamic install target.

Thomas Woerner twoerner at redhat.com
Wed Jul 22 15:38:15 UTC 2009


Install liblvm2app into libdir altogether with the devel link.

Signed-off-by: Thomas Woerner <twoerner at redhat.com>
---
 liblvm/Makefile.in |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/liblvm/Makefile.in b/liblvm/Makefile.in
index 0deaeac..f19069d 100644
--- a/liblvm/Makefile.in
+++ b/liblvm/Makefile.in
@@ -43,3 +43,25 @@ liblvm.cflow: $(SOURCES)
 		 ) > $@
 
 cflow: liblvm.cflow
+
+.PHONY: install_dynamic install_include install_pkgconfig
+
+INSTALL_TYPE = install_dynamic
+
+ifeq ("@PKGCONFIG@", "yes")
+  INSTALL_TYPE += install_pkgconfig
+endif
+
+install: $(INSTALL_TYPE) install_include
+
+install_include:
+	$(INSTALL) -D $(OWNER) $(GROUP) -m 444 lvm.h $(includedir)/lvm.h
+
+install_dynamic:
+	$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $(VERSIONED_SHLIB) \
+		$(libdir)/$(VERSIONED_SHLIB)
+	$(LN_S) -f $(VERSIONED_SHLIB) $(libdir)/$(LIB_NAME).$(LIB_SUFFIX)
+
+.PHONY: distclean_lib distclean
+
+distclean: distclean_lib
-- 
1.6.2.5




More information about the lvm-devel mailing list