From patchwork Wed Oct 7 00:40:59 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 35191 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 3CFEAB7B73 for ; Wed, 7 Oct 2009 12:03:18 +1100 (EST) Received: from localhost ([127.0.0.1]:59300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvKvz-0001B1-Fu for incoming@patchwork.ozlabs.org; Tue, 06 Oct 2009 21:03:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvKbN-0006RB-Di for qemu-devel@nongnu.org; Tue, 06 Oct 2009 20:41:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvKbH-0006MD-6I for qemu-devel@nongnu.org; Tue, 06 Oct 2009 20:41:55 -0400 Received: from [199.232.76.173] (port=60239 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvKbG-0006M7-Vb for qemu-devel@nongnu.org; Tue, 06 Oct 2009 20:41:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32530) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvKbG-0000CL-Hv for qemu-devel@nongnu.org; Tue, 06 Oct 2009 20:41:50 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n970fnF8012009 for ; Tue, 6 Oct 2009 20:41:49 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n970fiGQ022901; Tue, 6 Oct 2009 20:41:48 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 7 Oct 2009 02:40:59 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 03/31] 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 144b392..9169dd5 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!" @@ -34,12 +37,6 @@ SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) build-all: config-host.h $(call quiet-command, $(MAKE) $(SUBDIR_MAKEFLAGS) $(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