[SATLUG] .config file for make or scripts?

Bruce Dubbs bruce.dubbs at gmail.com
Wed Apr 7 18:48:24 CDT 2010


David Kowis wrote:
> On 4/7/2010 6:23 PM, John D Choate wrote:
>> I'm looking for a way to do 'make --jobs=4' simply by typing 'make'.
>> Is there any .conf file I can edit to make this the normal 'make'
>> behavior? Or should I just create a script, such as 'mj4', containing
>> that command, and run 'mj4' instead of 'make'? I guess I should
>> probably do this... besides, it would be a shorter command to type
>> anyway. I suppose I should create 'mj3' and 'mj2' as well, and
>> similar scripts for 'make install' too. In any case. I will make
>> those scripts, but I still would like to know if there is any way to
>> modify the configuration for the make command.
> 
> 
> I don't know of any specific configuration for global make configuration
> but in ~/.bashrc you can do alias make="make -j 4 "

That's one good way.  Another is to add to ~/.bash_profile

export MAKEFLAGS='-j4'

   -- Bruce


More information about the SATLUG mailing list