# HG changeset patch # User stekloff@xxxxxxxxxxxxxxxxxxxxxxxxxx # Node ID e76698c6198bd467cf7d26f64019068420237fd4 # Parent 1987bb42110a44a32c28ea99a5398a96515dcce7 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 diff -r 1987bb42110a -r e76698c6198b tools/xm-test/ramdisk/Makefile.am --- a/tools/xm-test/ramdisk/Makefile.am Thu Feb 2 13:57:18 2006 +++ b/tools/xm-test/ramdisk/Makefile.am Thu Feb 2 19:34:33 2006 @@ -43,7 +43,7 @@ initrd.img: $(XMTEST_VER_IMG) ln -sf $(XMTEST_VER_IMG) initrd.img -disk.img: $(XMTEST_VER_IMG) +disk.img: existing chmod a+x $(HVM_SCRIPT) @if test ! "$(HVMKERNEL)" = "no" -a ! "$(DRVDIR)" = "no"; then \ $(HVM_SCRIPT) -r $(XMTEST_VER_IMG) -k $(HVMKERNEL) \ @@ -57,8 +57,12 @@ fi existing: - @[ -f $(XMTEST_VER_IMG) ] && ln -sf $(XMTEST_VER_IMG) initrd.img || \ - echo Error, $(XMTEST_VER_IMG) not found + @if [ -f $(XMTEST_VER_IMG) ] ; then \ + ln -sf $(XMTEST_VER_IMG) initrd.img; \ + else \ + echo Error, $(XMTEST_VER_IMG) not found; \ + false; \ + fi clean-local: am_config_clean-local