From: Kay Sievers Date: Fri, 3 Jul 2009 16:38:45 +0000 (+0200) Subject: build: do not delete .la files X-Git-Tag: 174~914 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc8933f7f65d52d91f502dae778609242cdf3492;p=systemd build: do not delete .la files --- diff --git a/extras/gudev/Makefile.am b/extras/gudev/Makefile.am index dcfc2bdc..71565e2a 100644 --- a/extras/gudev/Makefile.am +++ b/extras/gudev/Makefile.am @@ -113,6 +113,3 @@ EXTRA_DIST += GUdev-1.0.gir CLEANFILES += $(gir_DATA) $(typelibs_DATA) endif # ENABLE_INTROSPECTION - -install-data-hook: - rm -f $(DESTDIR)$(libdir)/libgudev-1.0.la diff --git a/libudev/Makefile.am b/libudev/Makefile.am index 220cff0e..cae12b10 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