]> err.no Git - systemd/commitdiff
volume_id: move static lib to $prefix
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 30 Jul 2008 12:45:43 +0000 (14:45 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 30 Jul 2008 12:45:43 +0000 (14:45 +0200)
extras/volume_id/lib/Makefile.am

index de37f9e8b83227646fdc8c25f6424bbbea08931c..592b390987040fa92ef55e6587f1910394e304cd 100644 (file)
@@ -53,8 +53,9 @@ libvolume_id_la_LDFLAGS = \
 install-data-hook:
        rm  $(DESTDIR)$(rootlibdir)/libvolume_id.la
        if test "$(prefix)" != "$(exec_prefix)"; then \
-               rm $(DESTDIR)$(rootlibdir)/libvolume_id.so; \
                mkdir -p $(DESTDIR)$(prefix)/$(libdir_name); \
+               mv $(DESTDIR)$(rootlibdir)/libvolume_id.a $(DESTDIR)$(prefix)/$(libdir_name)/; \
+               rm $(DESTDIR)$(rootlibdir)/libvolume_id.so; \
                ln -sf $(rootlibdir)/libvolume_id.so.$(VOLID_LT_CURRENT).$(VOLID_LT_AGE).$(VOLID_LT_REVISION) \
                        $(DESTDIR)$(prefix)/$(libdir_name)/libvolume_id.so; \
        fi