From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lu6P6-0007FB-B0 for qemu-devel@nongnu.org; Wed, 15 Apr 2009 10:47:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lu6P5-0007Ej-Rk for qemu-devel@nongnu.org; Wed, 15 Apr 2009 10:47:55 -0400 Received: from [199.232.76.173] (port=46651 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lu6P5-0007Ef-Ff for qemu-devel@nongnu.org; Wed, 15 Apr 2009 10:47:55 -0400 Received: from hall.aurel32.net ([88.191.82.174]:33725) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lu6P2-0003uC-O3 for qemu-devel@nongnu.org; Wed, 15 Apr 2009 10:47:55 -0400 Date: Wed, 15 Apr 2009 16:47:46 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] Call configure automatically when needed Message-ID: <20090415144746.GF13794@volta.aurel32.net> References: <49D90D9F.1050809@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <49D90D9F.1050809@mail.berlios.de> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-devel@nongnu.org On Sun, Apr 05, 2009 at 09:59:27PM +0200, Stefan Weil wrote: > Hello, > > this patch calls configure automatically when configure > changed since the last time it was called. > > If configure was never called, the user is told to do so. > > Regards > Stefan > Thanks, applied. > Automatically rerun configure when it is needed. > > Signed-off-by: Stefan Weil > > Index: trunk/Makefile > =================================================================== > --- trunk.orig/Makefile 2009-04-05 21:43:15.000000000 +0200 > +++ trunk/Makefile 2009-04-05 21:53:37.000000000 +0200 > @@ -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-%: -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net