I have a Makefile on a machine that has a ton of cores in it, but I always seem to forget to write -jX when compiling my project and it takes way longer than it
-jX
I would just put
alias make='make -j'
in ~/.profile or ~/.bashrc.
~/.profile
~/.bashrc
According to the manual:
If there is nothing looking like an integer after the ‘-j’ option, there is no limit on the number of job slots.