Make “make” default to “make -j 8”
问题 Is there a way that I can make $ make default to: $ make -j 8 ? 回答1: alias make="make -j 8" , assuming bash shell 回答2: Set the environment variable MAKEFLAGS to -j 8 . If you are using csh or tcsh, you can do this with setenv MAKEFLAGS '-j 8' . If you are using bash, you can do this with export MAKEFLAGS='-j 8' . You might wish to put this command in your shell's start-up file, such as .cshrc or .bashrc (in your home directory). Caution: Setting a default like this will apply to all