Message ID | 1254305929-14993-4-git-send-email-yamahata@valinux.co.jp |
---|---|
State | Superseded |
Headers | show |
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/' $@
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 <yamahata@valinux.co.jp> --- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)