Fixes #377.
Replace hard coded -j6 in make lines for -j `nproc`
to adopt the same number of jobs as processor cores.
Discussion abounds as to whether there is a better
multiple for CPU vs I/O speeds, but it's better than
always using 6.
pushd build/native/$BUILDSUBDIR
cmake -DCMAKE_BUILD_TYPE=$BUILDTYPE ../../..
shift
- make -j 6 $*
+ make -j `nproc` $*
else
# Cross compile on a more capable machine
mkdir -p build/arm-linux/$BUILDSUBDIR
pushd build/arm-linux/$BUILDSUBDIR
cmake -DCMAKE_TOOLCHAIN_FILE=../../../makefiles/cmake/toolchains/arm-linux-gnueabihf.cmake -DCMAKE_BUILD_TYPE=$BUILDTYPE ../../..
- make -j 6
+ make -j `nproc`
if [ "$1" != "" ]; then
sudo make install DESTDIR=$1