From: Keir Fraser Subject: Re: [PATCH 1/8] tools - Add generic subdirs rules Date: Tue, 25 Mar 2008 10:20:28 +0000 Message-ID: References: <20080321130142.GA30833@wavehammer.waldi.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080321130142.GA30833@wavehammer.waldi.eu.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Bastian Blank , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 21/3/08 13:01, "Bastian Blank" wrote: > Add generic subdirs rules. > > Use them in the toplevel Makefile. > > Signed-off-by: Bastian Blank > diff -r 76c9cf11ce23 -r f08e76266aa7 tools/Rules.mk > --- a/tools/Rules.mk Fri Mar 21 09:45:34 2008 +0000 > +++ b/tools/Rules.mk Fri Mar 21 13:50:27 2008 +0100 > @@ -49,3 +49,13 @@ check-$(CONFIG_X86) = $(call cc-ver-chec > %.o: %.cc > $(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< > > +.PHONY: subdirs-all subdirs-clean subdirs-install > +.NOTPARALLEL: subdirs-all subdirs-clean subdirs-install No, .NOTPARALLEL in GNU Make causes parallelism to be globally disabled, not just for the listed dependent targets. It's really not the right answer here, and it allowed you in a later patch to break the dependencies in tools/firmware -- it may look neater to list subdirs-all as a dependency of all, but it's not correct in all cases! I applied your patches, then removed .NOTPARALLEL and fixed up the breakages. -- Keir