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 usually do this as follows in my bash scripts:
make -j$(nproc)