From 48b512b96493e53b8a2c139ab55283c39fff4919 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 2 Jan 2002 13:40:49 +0000 Subject: [PATCH] Tidy makefiles - $DESTDIR & shared library version (like LVM1) --- libdm/Makefile.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libdm/Makefile.in b/libdm/Makefile.in index eb1e7d1a4..2531e2347 100644 --- a/libdm/Makefile.in +++ b/libdm/Makefile.in @@ -18,10 +18,11 @@ TARGETS=$(interface)/libdevmapper.so include ../make.tmpl install: @interface@/libdevmapper.so - $(INSTALL) -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) $< \ - $(libdir) - $(INSTALL) -o $(OWNER) -g $(GROUP) -m 444 libdevmapper.h \ - $(includedir) + $(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) $< \ + $(libdir)/libdevmapper.so.$(VERSION) + $(LN_S) -f libdevmapper.so.$(VERSION) $(libdir)/libdevmapper.so + $(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 444 libdevmapper.h \ + $(includedir)/libdevmapper.h .PHONY: install