diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-07-03 18:38:45 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-07-04 04:12:06 +0200 |
commit | fc8933f7f65d52d91f502dae778609242cdf3492 (patch) | |
tree | 4c186ff74b34a02114f5dc8e29ea53f6fb1ce63b /libudev | |
parent | 84176f979f487392de9a7f01e804e72669cf5590 (diff) |
build: do not delete .la files
Diffstat (limited to 'libudev')
-rw-r--r-- | libudev/Makefile.am | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libudev/Makefile.am b/libudev/Makefile.am index 220cff0e58..cae12b1043 100644 --- a/libudev/Makefile.am +++ b/libudev/Makefile.am @@ -44,12 +44,11 @@ EXTRA_DIST = \ # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed install-data-hook: - rm -f $(DESTDIR)$(libdir)/libudev.la if test "$(libdir)" != "$(rootlibdir)"; then \ - mkdir -p $(DESTDIR)$(rootlibdir); \ - 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; \ + mkdir -p $(DESTDIR)$(rootlibdir) && \ + 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 |