SF Markus Elfring wrote:
It seems like you want to automatically expand or contract the
number of jobs that make will run in parallel,

Yes, exactly.

I can not use the parameter "-j" directly for the start of the main
make process in my case so far.


based on some processing of the recipe.

One of the variables (or make rules) will call the command
"getconf _NPROCESSORS_ONLN".

The corresponding processes should be efficiently started for
parallel background execution after a serial data preparation
was finished.

This makes very little sense. In a properly written Makefile, your serial preparation step will remain serial no matter what "-j" arguments are used, so it should be safe to just invoke "make -j xx" at the beginning and let things run serially or in parallel as necessary.

--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to