I have defined
export MAKEOPTS="-j4"
in my ~/.profile file.
But when I do a compilation with make, this option is ignored.
I've consulted the GNU Make manual but it says nothing about this variable. Is it standard or only it works in certain distros?
This will help invoking child
make
processes, but I'm afraid this wouldn't help with direct invocations, like justmake all
. Though a shell alias may help with the direct ones, so:I'll be honest, before today I'd never seen
MAKEOPTS
.MAKEFLAGS
I know of but after some research,MAKEOPTS
appears to be Gentoo- (and its children) specific.And if it's not in the manual, it can hardly be considered standard by any stretch of the imagination.
Add
to
/etc/make.conf
(create it if it doesn't already exist).