Revision 55d7e8f6 Makefile

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

Also available in: Unified diff