volume_id: move static lib to $prefix

This commit is contained in:
Kay Sievers 2008-07-30 14:45:43 +02:00
parent 47b0c35095
commit 4cf46e2c02

View 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