Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.