When running gnu-make rules with -jN make creates a jobserver to control the number of jobs between profiles. In addition, you can "pass the job server environment" to the make recipe by pre-specifying it + - for example:
target : +./some/complex/call/to/another/make target
Now, instead of sub-make, I have a (python) script that performs some complex packaging actions (too complicated for make). One of the actions that it may run into may actually issue the make .
package.stamp : $(DEPS) +./packaging.py $(ARGS) touch $@
Now when this make command is called inside package.py
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
This makes sense because any environment configured by make cannot be executed or passed through python.
Is it possible to pass links through jobserver through a python program to sub-make - if so, how?
source share