help-make
[Top][All Lists]
Advanced

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

Re: how to enforce ordering on a set of targets?


From: Noel Yap
Subject: Re: how to enforce ordering on a set of targets?
Date: Thu, 27 Jan 2005 07:44:13 -0500
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

Robert P. J. Day wrote:

On Wed, 26 Jan 2005, Paul D. Smith wrote:

ok, here's what i'm doing in a bit more detail.  it's a recursive
make, where i'm using a trick i saw (in the make manual, i think) that
allows me to process subdirectories in parallel.  in slightly
simplified form:

IIUC, this "trick" is no longer necessary.

  *now*, i want to add another target, "populate", which works almost
the same way but it has to do some preliminary processing in this
makefile before the recursive (potentially parallel) call to the
subdirectories.

  if i call this preliminary processing step, say, "pre-populate", i
can't just do this:

  populate: pre-populate ${SUBDIRS}

as those steps would be allowed to be done in parallel, which is not
good.  and i can't add

  ${SUBDIRS}: pre-populate

since that dependency should *only* take effect when i'm invoking the
makefile with the "populate" target, and no others.

Then it sounds like you need to use order rules.

Noel





reply via email to

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