From: Keir Fraser Date: Wed, 5 May 2010 19:23:27 +0000 (+0100) Subject: libxl: Ensure install directories are created, and copy X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12258 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fb69f6038539d5a8b80de1b05403b1dcf7efee0e;p=xen.git libxl: Ensure install directories are created, and copy bash-completion script relative to $(DESTDIR). Signed-off-by: Keir Fraser --- diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile index 4ecbc19e60..53bc909cf0 100644 --- a/tools/libxl/Makefile +++ b/tools/libxl/Makefile @@ -90,6 +90,10 @@ $(CLIENTS): xl.o xl_cmdimpl.o xl_cmdtable.o libxlutil.so libxenlight.so .PHONY: install install: all + $(INSTALL_DIR) $(DESTDIR)$(SBINDIR) + $(INSTALL_DIR) $(DESTDIR)$(LIBDIR) + $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR) + $(INSTALL_DIR) $(DESTDIR)$(BASH_COMPLETION_DIR) $(INSTALL_PROG) xl $(DESTDIR)$(SBINDIR) $(INSTALL_PROG) libxenlight.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR) ln -sf libxenlight.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)/libxenlight.so.$(MAJOR) @@ -100,7 +104,7 @@ install: all ln -sf libxlutil.so.$(XLUMAJOR) $(DESTDIR)$(LIBDIR)/libxlutil.so $(INSTALL_DATA) libxlutil.a $(DESTDIR)$(LIBDIR) $(INSTALL_DATA) libxl.h $(DESTDIR)$(INCLUDEDIR) - $(INSTALL_DATA) bash-completion $(BASH_COMPLETION_DIR)/xl.sh + $(INSTALL_DATA) bash-completion $(DESTDIR)$(BASH_COMPLETION_DIR)/xl.sh .PHONY: clean clean: