WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-devel] [PATCH] fix make install under tools/debugger/xenitp

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] fix make install under tools/debugger/xenitp
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Wed, 24 Sep 2008 11:00:24 +0900
Cc: waldi@xxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 23 Sep 2008 19:00:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
Fix make install under tools/debugger/xenitp

This patch fixes the following error with make install under
the directory, tools/debugger/xenitp by checking whether
the variable is length zero string.

> # make install
> ../../../tools/cross-install -d -m0755 -p //usr/bin
> [ -z " xenitp" ] || ../../../tools/cross-install -d -m0755 -p 
> //usr/lib/xen/bin
> ../../../tools/cross-install -d -m0755 -p //usr/share/man/man1
> ../../../tools/cross-install -d -m0755 -p //usr/share/man/man8
> ../../../tools/cross-install -m0755 -p   //usr/bin
> install: too few arguments
> Try `install --help' for more information.
> make: *** [install] Error 1

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r dff09c4e068d tools/debugger/xenitp/Makefile
--- a/tools/debugger/xenitp/Makefile    Fri Sep 19 11:47:26 2008 +0900
+++ b/tools/debugger/xenitp/Makefile    Wed Sep 24 10:58:28 2008 +0900
@@ -30,10 +30,16 @@
        [ -z "$(LIBBIN)" ] || $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
        $(INSTALL_DIR) $(DESTDIR)$(MAN1DIR)
        $(INSTALL_DIR) $(DESTDIR)$(MAN8DIR)
-       $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)$(BINDIR)
+       if [ "x$(SCRIPTS)" != "x" ]; then \
+               $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)$(BINDIR); \
+       fi
        [ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) 
$(DESTDIR)$(PRIVATE_BINDIR)
-       $(INSTALL_DATA) $(MAN1) $(DESTDIR)$(MAN1DIR)
-       $(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MAN8DIR)
+       if [ "x$(MAN1)" != "x" ]; then \
+               $(INSTALL_DATA) $(MAN1) $(DESTDIR)$(MAN1DIR); \
+       fi
+       if [ "x$(MAN1)" != "x" ]; then \
+               $(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MAN8DIR); \
+       fi
 
 .PHONY: clean
 clean:

-- 
yamahata

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] fix make install under tools/debugger/xenitp, Isaku Yamahata <=