From: Ian Jackson Subject: [PATCH] Serialise some things in top-level Makefile Date: Wed, 7 Jul 2010 17:16:29 +0100 Message-ID: <19508.43101.877001.354543@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org If the top-level Makefile does "make -C tools" before "make -C xen", or "make -C stubdom" before "make -C tools", things can go wrong. This will also mean that "make dist-tools" should work, if only by virtue of building Xen first. Signed-off-by: Ian Jackson diff -r a0f0ae5be814 Makefile --- a/Makefile Tue Jul 06 17:58:37 2010 +0100 +++ b/Makefile Wed Jul 07 17:15:00 2010 +0100 @@ -66,7 +66,7 @@ $(MAKE) -C xen install .PHONY: install-tools -install-tools: tools/ioemu-dir +install-tools: tools/ioemu-dir install-xen $(MAKE) -C tools install .PHONY: install-kernels @@ -74,7 +74,7 @@ for i in $(XKERNELS) ; do $(MAKE) $$i-install || exit 1; done .PHONY: install-stubdom -install-stubdom: tools/ioemu-dir +install-stubdom: tools/ioemu-dir install-tools $(MAKE) -C stubdom install ifeq (x86_64,$(XEN_TARGET_ARCH)) XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom install-grub