ia64/xen-unstable

changeset 8746:7bafcb7c24eb

Make "make disk.img" not require building the entire buildroot if initrd
already exists. Changed dependency for disk.img to "existing" and added
a line to make existing false.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
author stekloff@elm3b216.beaverton.ibm.com
date Fri Feb 03 09:34:03 2006 +0000 (2006-02-03)
parents 514f2585d102
children 959ba341631c
files tools/xm-test/ramdisk/Makefile.am
line diff
     1.1 --- a/tools/xm-test/ramdisk/Makefile.am	Fri Feb 03 09:31:28 2006 +0000
     1.2 +++ b/tools/xm-test/ramdisk/Makefile.am	Fri Feb 03 09:34:03 2006 +0000
     1.3 @@ -43,7 +43,7 @@ endif
     1.4  initrd.img: $(XMTEST_VER_IMG)
     1.5  	ln -sf $(XMTEST_VER_IMG) initrd.img
     1.6  
     1.7 -disk.img: $(XMTEST_VER_IMG)
     1.8 +disk.img: existing
     1.9  	chmod a+x $(HVM_SCRIPT)
    1.10  	@if test ! "$(HVMKERNEL)" = "no" -a ! "$(DRVDIR)" = "no"; then \
    1.11  		$(HVM_SCRIPT) -r $(XMTEST_VER_IMG) -k $(HVMKERNEL) \
    1.12 @@ -57,8 +57,12 @@ disk.img: $(XMTEST_VER_IMG)
    1.13  	fi
    1.14  
    1.15  existing:
    1.16 -	@[ -f $(XMTEST_VER_IMG) ] && ln -sf $(XMTEST_VER_IMG) initrd.img || \
    1.17 -	echo Error, $(XMTEST_VER_IMG) not found
    1.18 +	@if [ -f $(XMTEST_VER_IMG) ] ; then \
    1.19 +		ln -sf $(XMTEST_VER_IMG) initrd.img; \
    1.20 +	else \
    1.21 +		echo Error, $(XMTEST_VER_IMG) not found;  \
    1.22 +		false; \
    1.23 +	fi
    1.24  
    1.25  clean-local: am_config_clean-local
    1.26