qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [7110] Call configure automatically when needed
@ 2009-04-15 14:42 Aurelien Jarno
  0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2009-04-15 14:42 UTC (permalink / raw)
  To: qemu-devel

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 <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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-%:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-15 14:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-15 14:42 [Qemu-devel] [7110] Call configure automatically when needed Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).