Revision f527c579 Makefile

b/Makefile
1 1
# Makefile for QEMU.
2 2

  
3
# This needs to be defined before rules.mak
4
GENERATED_HEADERS = config-host.h config-all-devices.h
5

  
3 6
ifneq ($(wildcard config-host.mak),)
4 7
# Put the all: rule here so that config-host.mak can contain dependencies.
5 8
all: build-all
......
40 43

  
41 44
-include config-all-devices.mak
42 45

  
43
build-all: config-host.h config-all-devices.h $(DOCS) $(TOOLS)
44
	$(call quiet-command, $(MAKE) $(SUBDIR_MAKEFLAGS) recurse-all,)
46
build-all: $(DOCS) $(TOOLS) recurse-all
45 47

  
46 48
config-host.h: config-host.h-timestamp
47 49
config-host.h-timestamp: config-host.mak
......
51 53

  
52 54
SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
53 55

  
54
subdir-%: config-host.h config-all-devices.h
56
subdir-%: $(GENERATED_HEADERS)
55 57
	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,)
56 58

  
57 59
$(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a

Also available in: Unified diff