From cfc0527283b83b0e02dd8b78185c5bb2c7c4e4ad Mon Sep 17 00:00:00 2001 From: aurel32 Date: Wed, 15 Apr 2009 14:42:57 +0000 Subject: [PATCH] Call configure automatically when needed Automatically rerun configure when it is needed. Signed-off-by: Stefan Weil Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7110 c046a42c-6fe2-441c-8c8c-71466251a162 --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index af174b5..50b8bb6 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-%: -- 2.7.4