I usually use a high level build system like cmake
for building my C/C++ code. But for various reasons I am using straight GNU make
.
I am doing recursive build where each directory has a makefile.
I recently had to change all my makefiles from using make
to $(MAKE)
and then parallel builds started working.
The literature I've read all say "always use $(MAKE)
" (O'Reilly book, 5+ solutions on stackoverflow.com from people with greater than 10-40K points).
In your makefiles, why always use $(MAKE)
instead of make
?
(obviously ONE reason is because $(MAKE)
somehow enables parallel builds.)
Is there more happening than simple substitution of $(MAKE)
with make
?