In what order prerequisites will be made by the GNU make?

peper0 picture peper0 · Oct 30, 2009 · Viewed 17.7k times · Source

Assuming we have the rule:

a: b c d e

and b, c, d and e are independent of each other.

Is the order of making b, c, d, e defined? It seems that generally they will be made in order b, c, d, e, but may it sometimes happen, that the order will be different?

Answer

Jörg W Mittag picture Jörg W Mittag · Oct 30, 2009

No, the order is not defined. That is the whole point in using declarative dependency-oriented programming: that the computer can pick the optimal evaluation order, or in fact, evaluate them even at the same time.