server/configure

19 lines
293 B
Text
Raw Normal View History

#!/bin/sh
git submodule update --init
DISTCC=`which distcc`
if [ ! -z "$DISTCC" ] ; then
JOBS=`distcc -j`
if [ -z "$JOBS" ] ; then
JOBS=1
elif [ $JOBS -gt 1 ] ; then
2014-03-17 04:01:52 +01:00
CC="$DISTCC $CC"
MAKEOPTS=-j$JOBS
fi
fi
echo "Building with $CC and $JOBS jobs"
CC="$CC" s/cmake-init
make -j$JOBS
make test