From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lu6KO-00062g-IZ for qemu-devel@nongnu.org; Wed, 15 Apr 2009 10:43:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lu6KN-00062J-Te for qemu-devel@nongnu.org; Wed, 15 Apr 2009 10:43:04 -0400 Received: from [199.232.76.173] (port=50622 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lu6KN-00062C-OS for qemu-devel@nongnu.org; Wed, 15 Apr 2009 10:43:03 -0400 Received: from savannah.gnu.org ([199.232.41.3]:43286 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lu6KM-0002Vo-TM for qemu-devel@nongnu.org; Wed, 15 Apr 2009 10:43:03 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Lu6KI-00082n-Aa for qemu-devel@nongnu.org; Wed, 15 Apr 2009 14:42:58 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Lu6KI-00082j-2s for qemu-devel@nongnu.org; Wed, 15 Apr 2009 14:42:58 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Wed, 15 Apr 2009 14:42:58 +0000 Subject: [Qemu-devel] [7110] Call configure automatically when needed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 7110 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7110 Author: aurel32 Date: 2009-04-15 14:42:57 +0000 (Wed, 15 Apr 2009) Log Message: ----------- Call configure automatically when needed Automatically rerun configure when it is needed. Signed-off-by: Stefan Weil Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/Makefile Modified: trunk/Makefile =================================================================== --- trunk/Makefile 2009-04-15 14:42:46 UTC (rev 7109) +++ trunk/Makefile 2009-04-15 14:42:57 UTC (rev 7110) @@ -1,7 +1,13 @@ # Makefile for QEMU. +ifneq ($(wildcard config-host.mak),) include config-host.mak include $(SRC_PATH)/rules.mak +else +config-host.mak: + @echo "Please call configure before running make!" + @exit 1 +endif .PHONY: all clean cscope distclean dvi html info install install-doc \ recurse-all speed tar tarbin test @@ -36,6 +42,12 @@ all: $(TOOLS) $(DOCS) recurse-all +config-host.mak: configure +ifneq ($(wildcard config-host.mak),) + @echo $@ is out-of-date, running configure + @fgrep "Configured with:" $@ | sed s/.*Configured.with:.// | sh +endif + SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) subdir-%: