Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to set system or user wide that make always uses -j3 parameter?

share|improve this question
up vote 0 down vote accepted

You could just do

alias make="/usr/bin/make -j3"
share|improve this answer
    
That will work only in shell, it may not work in IDE like QtCreator but it's one of options. I thought gnumake has some kind of config file – Kamil Klimek Mar 30 '12 at 14:38
    
OK - have you tried setting CFLAGS to "-j3"? – Scott Wilson Mar 30 '12 at 14:57
    
It is not compiler flag – Kamil Klimek Mar 30 '12 at 14:58

Create a script named make that calls the real make with -j3 and then the other command line parameters. Modify your path so the script is found before the real make, or you could rename the real make to /usr/bin/make.real and place your script in /usr/bin.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .