From patchwork Wed Sep 30 10:18:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Isaku Yamahata X-Patchwork-Id: 34584 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D4E18B7BBA for ; Wed, 30 Sep 2009 23:22:30 +1000 (EST) Received: from localhost ([127.0.0.1]:47550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Msz8V-0001nF-W4 for incoming@patchwork.ozlabs.org; Wed, 30 Sep 2009 09:22:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MswIs-0004tZ-Bd for qemu-devel@nongnu.org; Wed, 30 Sep 2009 06:20:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MswIU-0004es-49 for qemu-devel@nongnu.org; Wed, 30 Sep 2009 06:20:51 -0400 Received: from [199.232.76.173] (port=43927 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MswIS-0004e3-Mk for qemu-devel@nongnu.org; Wed, 30 Sep 2009 06:20:33 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:55869) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MswIR-0005pj-DK for qemu-devel@nongnu.org; Wed, 30 Sep 2009 06:20:32 -0400 Received: from nm.local.valinux.co.jp (vagw.valinux.co.jp [210.128.90.14]) by mail.valinux.co.jp (Postfix) with ESMTP id 7FCA349C0B; Wed, 30 Sep 2009 19:20:26 +0900 (JST) Received: from yamahata by nm.local.valinux.co.jp with local (Exim 4.69) (envelope-from ) id 1MswGn-0003uH-5L; Wed, 30 Sep 2009 19:18:49 +0900 From: Isaku Yamahata To: qemu-devel@nongnu.org, anthony@codemonkey.ws Date: Wed, 30 Sep 2009 19:18:38 +0900 Message-Id: <1254305929-14993-4-git-send-email-yamahata@valinux.co.jp> X-Mailer: git-send-email 1.6.0.2 In-Reply-To: <1254305929-14993-1-git-send-email-yamahata@valinux.co.jp> References: <1254305929-14993-1-git-send-email-yamahata@valinux.co.jp> X-Virus-Scanned: clamav-milter 0.95.2 at va-mail.local.valinux.co.jp X-Virus-Status: Clean X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: yamahata@valinux.co.jp Subject: [Qemu-devel] [PATCH 03/14] pcbios: remove iasl output file when error. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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/' $@