From patchwork Fri Aug 28 18:56:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 32438 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 8A525B6EDF for ; Sat, 29 Aug 2009 05:51:35 +1000 (EST) Received: from localhost ([127.0.0.1]:34747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mh7Tw-0004l9-94 for incoming@patchwork.ozlabs.org; Fri, 28 Aug 2009 15:51:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mh6fq-0002x1-2N for qemu-devel@nongnu.org; Fri, 28 Aug 2009 14:59:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mh6fi-0002m3-IH for qemu-devel@nongnu.org; Fri, 28 Aug 2009 14:59:42 -0400 Received: from [199.232.76.173] (port=43267 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mh6fi-0002ls-5z for qemu-devel@nongnu.org; Fri, 28 Aug 2009 14:59:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32016) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mh6fh-0007cl-KY for qemu-devel@nongnu.org; Fri, 28 Aug 2009 14:59:37 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7SIxau1023769; Fri, 28 Aug 2009 14:59:37 -0400 Received: from localhost.localdomain (vpn2-8-222.ams2.redhat.com [10.36.8.222]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7SIxTPg029889; Fri, 28 Aug 2009 14:59:35 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Fri, 28 Aug 2009 20:56:38 +0200 Message-Id: <75d76265263d609c448f777ccb80d0b1a012be39.1251485646.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH 03/30] Remove useless check for config-host.mak 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 If config-host.mak dont' exist, we have exited in the check at the beginning of the file. Once here, move the bits to the else part of the test at the beginning of the file. Signed-off-by: Juan Quintela --- Makefile | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index bf44461..0cec032 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,9 @@ ifneq ($(wildcard config-host.mak),) all: build-all include config-host.mak include $(SRC_PATH)/rules.mak +config-host.mak: configure + @echo $@ is out-of-date, running configure + @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh else config-host.mak: @echo "Please call configure before running make!" @@ -27,12 +30,6 @@ endif build-all: config-host.h $(MAKE) $(TOOLS) $(DOCS) recurse-all -config-host.mak: configure -ifneq ($(wildcard config-host.mak),) - @echo $@ is out-of-date, running configure - @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh -endif - config-host.h: config-host.h-timestamp config-host.h-timestamp: config-host.mak