2 ms·
I thought the behavior I have seen is it's always in the order that the targets are specified. So if you have: all: A B Then if both need a rebuild A is alwa
by asveikau 7y ago
I thought the behavior I have seen is it's always in the order that the targets are specified.
So if you have:
all: A B
Then if both need a rebuild A is always first, except when -j breaks that.
But I can't say I have played close attention to every time I have typed make.
- IshKebab 7y agoAh right, but that's just a lucky coincidence. Make is perfectly within its rights to randomise the order of A and B even if you don't specify `-j`. And if you're driving Make from some other system, e.g. CMake, you really have no idea what order stuff is going to end up in the makefiles anyway.