ia64/xen-unstable

changeset 10776:849b8ce387c3

When installing libblktap, symlinks should be made instead of using
install on the symlinks (install will follow the symlink)

Signed-off-by: Jeremy Katz <katzj@redhat.com>
author kfraser@localhost.localdomain
date Tue Jul 25 11:41:45 2006 +0100 (2006-07-25)
parents f07effe5097b
children a61fd84125aa
files tools/blktap/lib/Makefile
line diff
     1.1 --- a/tools/blktap/lib/Makefile	Tue Jul 25 11:41:18 2006 +0100
     1.2 +++ b/tools/blktap/lib/Makefile	Tue Jul 25 11:41:45 2006 +0100
     1.3 @@ -33,7 +33,7 @@ DEPS     = .*.d
     1.4  OBJS     = $(patsubst %.c,%.o,$(SRCS))
     1.5  IBINS   :=
     1.6  
     1.7 -LIB      = libblktap.a libblktap.so libblktap.so.$(MAJOR) libblktap.so.$(MAJOR).$(MINOR)
     1.8 +LIB      = libblktap.a libblktap.so.$(MAJOR).$(MINOR)
     1.9  
    1.10  all: build
    1.11  
    1.12 @@ -44,10 +44,12 @@ install: all
    1.13  	$(INSTALL_DIR) -p $(DESTDIR)/usr/$(LIBDIR)
    1.14  	$(INSTALL_DIR) -p $(DESTDIR)/usr/include
    1.15  	$(INSTALL_PROG) $(LIB) $(DESTDIR)/usr/$(LIBDIR)
    1.16 +	ln -sf libblktap.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/$(LIBDIR)/libblktap.so.$(MAJOR)
    1.17 +	ln -sf libblktap.so.$(MAJOR) $(DESTDIR)/usr/$(LIBDIR)/libblktap.so
    1.18  	$(INSTALL_PROG) blktaplib.h $(DESTDIR)/usr/include
    1.19  
    1.20  clean:
    1.21 -	rm -rf *.a *.so *.o *.rpm $(LIB) *~ $(DEPS) xen TAGS
    1.22 +	rm -rf *.a *.so* *.o *.rpm $(LIB) *~ $(DEPS) xen TAGS
    1.23  
    1.24  libblktap: $(OBJS) 
    1.25  	$(CC) $(CFLAGS) -Wl,-soname -Wl,$(SONAME) -shared         \