ia64/xen-unstable

changeset 17995:edd6969f609c

Improve plumbing for calling external qemu builds

* Remove ioemu-dir before replacing it with a symlink so that
switching between trees doesn't go wrong.
* Remove case-based arrangement for making XEN_ROOT absolute
and replace with $(abspath ...) since we depend on GNU make
anyway.
* `make clean' recurses into ioemu-dir

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jul 08 14:26:09 2008 +0100 (2008-07-08)
parents 914a31d2ad08
children aa07c48c2347
files tools/Makefile
line diff
     1.1 --- a/tools/Makefile	Tue Jul 08 12:24:14 2008 +0100
     1.2 +++ b/tools/Makefile	Tue Jul 08 14:26:09 2008 +0100
     1.3 @@ -79,15 +79,14 @@ ioemu-dir-find:
     1.4  			$(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp; \
     1.5  			mv ioemu-remote.tmp ioemu-remote; \
     1.6  		fi; \
     1.7 +		rm -f ioemu-dir; \
     1.8  		ln -sf ioemu-remote ioemu-dir; \
     1.9  	fi
    1.10 -	set -e; \
    1.11 -		case "$XEN_ROOT" in \
    1.12 -		/*)	XEN_ROOT=$(XEN_ROOT) ;; \
    1.13 -		*)	XEN_ROOT=`pwd`/$(XEN_ROOT) ;; \
    1.14 -		esac; \
    1.15 -		export XEN_ROOT; \
    1.16 -		cd ioemu-dir; \
    1.17 -		./xen-setup
    1.18 +	cd ioemu-dir && XEN_ROOT="$(abspath $(XEN_ROOT))" ./xen-setup
    1.19  
    1.20  subdir-all-ioemu-dir subdir-install-ioemu-dir: ioemu-dir-find
    1.21 +
    1.22 +subdir-clean-ioemu-dir:
    1.23 +	if test -d ioemu-dir/.; then \
    1.24 +		$(MAKE) -C ioemu-dir clean; \
    1.25 +	fi