diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-17 16:10:06 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-17 16:10:06 +0200 |
commit | bc3ebcbdb8baca707519ccd471cca967e0245404 (patch) | |
tree | 88d88cc894d886da09696548baa5d52c5a2dca99 | |
parent | 4b3be1c15836cfedcd017a6dd77fa1c3ac68a5f0 (diff) |
libudev: install in $libdir and move later to $rootlibdir
That way, libudev.la will not get out of sync with the location of the
development so link.
-rw-r--r-- | libudev/Makefile.am | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libudev/Makefile.am b/libudev/Makefile.am index 522244641e..220cff0e58 100644 --- a/libudev/Makefile.am +++ b/libudev/Makefile.am @@ -12,7 +12,7 @@ test_libudev_SOURCES = \ test_libudev_LDADD = \ libudev.la -rootlib_LTLIBRARIES = \ +lib_LTLIBRARIES = \ libudev.la include_HEADERS =\ @@ -42,17 +42,16 @@ pkgconfig_DATA = \ EXTRA_DIST = \ exported_symbols -# move devel files from $(rootlibdir) to $(libdir) if needed +# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed install-data-hook: - rm -f $(DESTDIR)$(rootlibdir)/libudev.la + rm -f $(DESTDIR)$(libdir)/libudev.la if test "$(libdir)" != "$(rootlibdir)"; then \ mkdir -p $(DESTDIR)$(rootlibdir); \ - so_img_name=$$(readlink $(DESTDIR)$(rootlibdir)/libudev.so); \ - rm $(DESTDIR)$(rootlibdir)/libudev.so; \ + so_img_name=$$(readlink $(DESTDIR)$(libdir)/libudev.so); \ so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \ ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libudev.so; \ + mv $(DESTDIR)$(libdir)/libudev.so.* $(DESTDIR)$(rootlibdir); \ fi uninstall-hook: - rm -f $(DESTDIR)$(rootlibdir)/libudev.a rm -f $(DESTDIR)$(rootlibdir)/libudev.so* |