diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2010-05-06 10:07:46 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2010-05-06 10:07:46 +0000 |
commit | 180b3dea119b6d89791ac014a996dd5f5ffd7fe4 (patch) | |
tree | 8ae2468b9d7bbf62fb064dfc7ead8942dc47ed11 /make.tmpl.in | |
parent | 2f01958e3e0286f968d837c51e78975fd2c2287c (diff) | |
download | lvm2-180b3dea119b6d89791ac014a996dd5f5ffd7fe4.tar.gz lvm2-180b3dea119b6d89791ac014a996dd5f5ffd7fe4.tar.xz lvm2-180b3dea119b6d89791ac014a996dd5f5ffd7fe4.zip |
Install plugins to subdirs
Target install_dm_plugin installs files to libdir/device-mapper.
Target install_lvm2_plugin installs files to libdir/lvm2.
Both targets creates relative links to libdir to keep the code
compatible with current dlopen handling.
Once we will be able to read plugins from subdir, links
could be removed.
Diffstat (limited to 'make.tmpl.in')
-rw-r--r-- | make.tmpl.in | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/make.tmpl.in b/make.tmpl.in index a2fe0035..2375e183 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -163,7 +163,7 @@ POTFILES = $(SOURCES:%.c=%.pot) .PHONY: all pofile distclean clean cleandir cflow device-mapper .PHONY: install install_cluster install_device-mapper install_lvm2 -.PHONY: install_lib_shared install_lib_shared_plugin +.PHONY: install_lib_shared install_dm_plugin install_lvm2_plugin .PHONY: $(SUBDIRS) $(SUBDIRS.install) $(SUBDIRS.clean) $(SUBDIRS.distclean) .PHONY: $(SUBDIRS.pofile) $(SUBDIRS.install_cluster) $(SUBDIRS.cflow) .PHONY: $(SUBDIRS.device-mapper) $(SUBDIRS.install-device-mapper) @@ -306,9 +306,18 @@ install_lib_shared: $(LIB_SHARED) $(INSTALL) -d $(usrlibdir) $(LN_S) -f $(USRLIB_RELPATH)$(<F).$(LIB_VERSION) $(usrlibdir)/$(<F) -# FIXME: plugins are currently installed with .so suffix only -install_lib_shared_plugin: $(LIB_SHARED) - $(INSTALL_PROGRAM) -D $< $(libdir)/$(<F) +# FIXME: plugins are installed to subdirs +# and for compatibility links in libdir are created +# when the code is fixed links could be removed. +install_dm_plugin: $(LIB_SHARED) + $(INSTALL_PROGRAM) -D $< $(libdir)/device-mapper/$(<F) + $(LN_S) -f device-mapper/$(<F) $(libdir)/$(<F) + $(LN_S) -f $(<F) $(libdir)/$(<F).$(LIB_VERSION) + +install_lvm2_plugin: $(LIB_SHARED) + $(INSTALL_PROGRAM) -D $< $(libdir)/lvm2/$(<F) + $(LN_S) -f lvm2/$(<F) $(libdir)/$(<F) + $(LN_S) -f $(<F) $(libdir)/$(<F).$(LIB_VERSION) endif %.so: %.a |