ubuntumakefileparallel-builds

Set make to always do 8 jobs simultaneously


Is there a way to set make to always do 8 jobs simultaneously, akin to 'make -j 8', but in a permanent way, even between restarts of the computer?

Some environment variable, perhaps? I'm using Ubuntu.


Solution

  • You can try the $(MAKEFLAGS) variable:

    export MAKEFLAGS=j8
    

    But read the caveats and suggestions here.