qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 03/14] pcbios: remove iasl output file when error.


From: Isaku Yamahata
Subject: [Qemu-devel] [PATCH 03/14] pcbios: remove iasl output file when error.
Date: Wed, 30 Sep 2009 19:18:38 +0900

Surprisingly iasl creates output file even when compilation error.
So typing make after an error will succeed.
This patch prevents it by removing the output file when error.

Signed-off-by: Isaku Yamahata <address@hidden>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index ddf30d3..22599fa 100644
--- a/Makefile
+++ b/Makefile
@@ -88,7 +88,7 @@ rombios32.o: rombios32.c acpi-dsdt.hex
 
 acpi-dsdt.hex: acpi-dsdt.dsl
        $(CPP) -P $< > acpi-dsdt.dsl.i
-       $(IASL) -tc -p $@ acpi-dsdt.dsl.i
+       $(IASL) -tc -p $@ acpi-dsdt.dsl.i || ($(RM) $@; exit 1)
        $(RM) acpi-dsdt.dsl.i
        sed -i -e's/^unsigned/const unsigned/' $@
 
-- 
1.6.0.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]