Linux:

alias makej="make -j $(cat /proc/cpuinfo | grep processor | wc | sed -r 's/^ +([0-9])+.*//')"

Mac:

alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')"