ia64/xen-unstable

changeset 18539:981e4d7eb8a8

ia64: 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@valinux.co.jp>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Sep 24 10:19:07 2008 +0100 (2008-09-24)
parents 2842dbc5679c
children 1eeb3aecea57
files tools/debugger/xenitp/Makefile
line diff
     1.1 --- a/tools/debugger/xenitp/Makefile	Wed Sep 24 10:18:20 2008 +0100
     1.2 +++ b/tools/debugger/xenitp/Makefile	Wed Sep 24 10:19:07 2008 +0100
     1.3 @@ -30,10 +30,16 @@ install: build
     1.4  	[ -z "$(LIBBIN)" ] || $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
     1.5  	$(INSTALL_DIR) $(DESTDIR)$(MAN1DIR)
     1.6  	$(INSTALL_DIR) $(DESTDIR)$(MAN8DIR)
     1.7 -	$(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)$(BINDIR)
     1.8 +	if [ "x$(SCRIPTS)" != "x" ]; then \
     1.9 +		$(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)$(BINDIR); \
    1.10 +	fi
    1.11  	[ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)$(PRIVATE_BINDIR)
    1.12 -	$(INSTALL_DATA) $(MAN1) $(DESTDIR)$(MAN1DIR)
    1.13 -	$(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MAN8DIR)
    1.14 +	if [ "x$(MAN1)" != "x" ]; then \
    1.15 +		$(INSTALL_DATA) $(MAN1) $(DESTDIR)$(MAN1DIR); \
    1.16 +	fi
    1.17 +	if [ "x$(MAN1)" != "x" ]; then \
    1.18 +		$(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MAN8DIR); \
    1.19 +	fi
    1.20  
    1.21  .PHONY: clean
    1.22  clean: