> If my guess is not wrong, the semaphore safeguard the consistency of
> output of one command, not the order of commands.

well, with -j, commands are being run concurrently, so there *isn't* a
strict ordering of commands to "safeguard", although output shall be
delivered in roughly the order of completion of commands, with only
minor disturbances.

Still, if target A is a prerequisite of B, the recipe to make A is
run, and must complete, before the recipe to make B will be initiated;
since the recipe for A ends with whatever is ensuring its output comes
out as an atom, A's output is produced before B's recipe is initiated,
so you can be sure they appear in the right order.  So the only
ordering property among commands that actually matters *is* preserved.

        Eddy.

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to