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
_______________________________________________
help-gnu-utils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnu-utils

Reply via email to