diff options
author | Juan Quintela <quintela@redhat.com> | 2009-11-05 17:19:57 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-12 11:23:54 -0600 |
commit | f527c57935e22b56952d1ed1af36070b682ecf70 (patch) | |
tree | 70f98a9294db58bb7839a1e1af021a5536941048 /Makefile | |
parent | 593831de5dce5f5b9ce1226e0d8353eecb1176e4 (diff) | |
download | qemu-f527c57935e22b56952d1ed1af36070b682ecf70.zip qemu-f527c57935e22b56952d1ed1af36070b682ecf70.tar.gz qemu-f527c57935e22b56952d1ed1af36070b682ecf70.tar.bz2 |
fix parallel build
Based on a ideas of Daniel Jacobowitz + Stefan Weil
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,8 @@ # Makefile for QEMU. +# This needs to be defined before rules.mak +GENERATED_HEADERS = config-host.h config-all-devices.h + ifneq ($(wildcard config-host.mak),) # Put the all: rule here so that config-host.mak can contain dependencies. all: build-all @@ -40,8 +43,7 @@ config-all-devices.mak: $(SUBDIR_DEVICES_MAK) -include config-all-devices.mak -build-all: config-host.h config-all-devices.h $(DOCS) $(TOOLS) - $(call quiet-command, $(MAKE) $(SUBDIR_MAKEFLAGS) recurse-all,) +build-all: $(DOCS) $(TOOLS) recurse-all config-host.h: config-host.h-timestamp config-host.h-timestamp: config-host.mak @@ -51,7 +53,7 @@ config-all-devices.h-timestamp: config-all-devices.mak SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) -subdir-%: config-host.h config-all-devices.h +subdir-%: $(GENERATED_HEADERS) $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a |