Skip to content

Commit

Permalink
Call configure automatically when needed
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aurel32 committed Apr 15, 2009
1 parent 6e9ea0c commit 55d7e8f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 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
Expand Down Expand Up @@ -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-%:
Expand Down

0 comments on commit 55d7e8f

Please sign in to comment.