[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bsd.lib.mk question
On Tue, 7 Jun 2011, Roland C. Dowdeswell wrote:
> a b:
> echo foo > a
> echo foo > b
> So, the question is: is it right to expect that this works?
That rule is not saying what you expect. It does not say that to make both
"a" and "b" you should follow these instructions, it says that to make
either of "a" or "b" you should follow these instructions..
During a sequential make that turns out to be the same thing since the
rule will never trigger twice as both files are updated at the first
invocation, but the parallel make is deciding what else needs to be made
as soon as a job slot becomes available, and unless "a" finishes first,
"b" will get its own job..
Main Index |
Thread Index |