0
UPDATED
When running make with the -j option to use multicore, that is to put each requesting target on a core, it does not respect the order and runs both simultaneously.
For example
make Object1 Object2 -j4
He will execute the Objeto1
and targets associated with it simultaneously Objeto2
and the targets associated with it, if for some reason one of the targets interferes with the product that will be used by the others in execution I will have a conflict.
At the moment what I have had as problem is connected to target clean, which sometimes wipes an object that was created.
The use of so-called sequences like make Objeto1 && make Objeto2
won’t let me take advantage of the feature for use of multiple processor colors, which would be the same thing as calling the make command without the key -j4
, that would be the same as calling make Objeto1 Objeto2
Well maybe I wasn’t happy in the example, but the idea is that it’s just typing a make and internally managing the dependencies. I’ll elaborate on the question.
– Delfino
X, I tried to improve the explanation of the problem, Your proposal still does not solve my situation. I already have a target clean_all that cleans and compiles next.
– Delfino