help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recursive make: communicating target to sub-makes


From: Daniel Kabs
Subject: Re: recursive make: communicating target to sub-makes
Date: Tue, 14 Feb 2006 09:05:12 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920

Hello!


James wrote:
>>SUBDIRS = foo bar baz

ALL = $(addsuffix -all,$(SUBDIRS))
all: $(ALL)
$(ALL):
          $(MAKE) -C $(@:-all=) all


Creating targets using variables is a good idea but I don't see how I can declare dependencies (e.g. say "bar" has to be compiled before "foo"). Well, I can list the SUBDIRS in a certain order but that does not work when "make" runs jobs concurrently (using option -j).

Cheers
Daniel
--
Refactor, don't archive! - SamHasler - 28 Aug 2004 - twiki.org


reply via email to

[Prev in Thread] Current Thread [Next in Thread]