Commit 55d7e8f69d026a3cf9da38621930e988cc974990
1 parent
6e9ea0c0
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
Showing
1 changed file
with
12 additions
and
0 deletions
Makefile
1 | 1 | # Makefile for QEMU. |
2 | 2 | |
3 | +ifneq ($(wildcard config-host.mak),) | |
3 | 4 | include config-host.mak |
4 | 5 | include $(SRC_PATH)/rules.mak |
6 | +else | |
7 | +config-host.mak: | |
8 | + @echo "Please call configure before running make!" | |
9 | + @exit 1 | |
10 | +endif | |
5 | 11 | |
6 | 12 | .PHONY: all clean cscope distclean dvi html info install install-doc \ |
7 | 13 | recurse-all speed tar tarbin test |
... | ... | @@ -36,6 +42,12 @@ endif |
36 | 42 | |
37 | 43 | all: $(TOOLS) $(DOCS) recurse-all |
38 | 44 | |
45 | +config-host.mak: configure | |
46 | +ifneq ($(wildcard config-host.mak),) | |
47 | + @echo $@ is out-of-date, running configure | |
48 | + @fgrep "Configured with:" $@ | sed s/.*Configured.with:.// | sh | |
49 | +endif | |
50 | + | |
39 | 51 | SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) |
40 | 52 | |
41 | 53 | subdir-%: | ... | ... |