#!/bin/bash

ncpus=1
if [ -e /proc/cpuinfo ]; then
        ncpus=`cat /proc/cpuinfo | grep '^processor' | wc -l`
fi
make -j $ncpus "$@"