I have a Makefile which has several targets. One of then it’s just to generate cpp code automatically. The second one is designated to compile those generated cpp.
I have configured a cluster of distributed compilation and I just want to specify a amount of jobs to use for the compilation of the cpp files themselves. And another different amount of jobs for the generation part.
Is it possible?
The idea is use “make -j30” to distribute by distcc the builds to several available hosts, but the target dedicated to generate code defined into the Makefile cannot be splitted in 30 jobs because this target just will be processed locally. And the localhost has not 30 cores to process them, so the machine freeze. That is the reason i need to define amount of jobs for the generation phase and another amount of jobs for the compilation phase.