summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authoraurel322009-04-15 16:42:57 +0200
committeraurel322009-04-15 16:42:57 +0200
commit55d7e8f69d026a3cf9da38621930e988cc974990 (patch)
tree943f81226431637d5fed56539afa14161ed269a7 /Makefile
parentblock-vpc: Don't silently create smaller image than requested (diff)
downloadqemu-55d7e8f69d026a3cf9da38621930e988cc974990.tar.gz
qemu-55d7e8f69d026a3cf9da38621930e988cc974990.tar.xz
qemu-55d7e8f69d026a3cf9da38621930e988cc974990.zip
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> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7110 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index af174b5779..50b8bb6f5f 100644
--- a/Makefile
+++ b/Makefile
@@ -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 @@ endif
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-%: