# Edit this to enable/disable/modify parallel compiles.
PARALLEL="-j 2"
+# Uncomment the following lines to build with clang and run scan-build.
+# export CC=clang
+# export CXX=clang++
+# SB="scan-build -k -v"
+
# You usually don't need to change anything below this line.
# -----------------------------------------------------------------------------
mkdir build
cd build
../configure $C
-make $PARALLEL
+$SB make $PARALLEL
make install
cd ../..
mkdir build
cd build
PKG_CONFIG_PATH=$P ../configure $C
-make $PARALLEL
-PYTHONPATH=$PYPATH make install
-make check
+$SB make $PARALLEL
+PYTHONPATH=$PYPATH $SB make install
+$SB make check
cd ../..
# libsigrokdecode
mkdir build
cd build
PKG_CONFIG_PATH=$P ../configure $C
-make $PARALLEL
+$SB make $PARALLEL
make install
-make check
+$SB make check
cd ../..
# sigrok-firmware
mkdir build
cd build
PKG_CONFIG_PATH=$P ../configure $C
-make $PARALLEL
+$SB make $PARALLEL
make install
cd ../..
cd pulseview
mkdir build
cd build
-PKG_CONFIG_PATH=$P cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y -DENABLE_TESTS=y ..
-make $PARALLEL
+PKG_CONFIG_PATH=$P $SB cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y -DENABLE_TESTS=y ..
+$SB make $PARALLEL
make install
cd ../..