-#!/bin/sh
+#!/bin/sh -exu
#
# Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
# Michael Jeanson <mjeanson@efficios.com>
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Exit with error when using an undefined variable
-set -u
-
#Check if ccache is present
#if [ -d /usr/lib/ccache ]; then
# echo "Using CCACHE"
# Build to out of tree dir
#make -j$nbrProc O="${BUILDDIR}"
-make O="${BUILDDIR}" prepare
-make -j${NPROC} O="${BUILDDIR}" modules
+make O="${BUILDDIR}" modules_prepare
# Clean up artifact directory to keep only relevant stuff for lttng-modules
cd "${BUILDDIR}"