X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Keyboards%2Fcmake.bash;h=3a1b6e49be1417c95f86fd796309ac67adc925a4;hb=6dfeffd9cad508817757d1afaba4ab0901cc9786;hp=61995b0cf0432edc07416f44a16d298fbe9f7214;hpb=337eaa16f27856df89b06ec47e89e39f7f1976c1;p=kiibohd-controller.git diff --git a/Keyboards/cmake.bash b/Keyboards/cmake.bash index 61995b0..3a1b6e4 100644 --- a/Keyboards/cmake.bash +++ b/Keyboards/cmake.bash @@ -82,7 +82,19 @@ done mkdir -p "${BuildPath}" cd "${BuildPath}" cmake -DCHIP="${Chip}" -DCOMPILER="${Compiler}" -DScanModule="${ScanModule}" -DMacroModule="${MacroModule}" -DOutputModule="${OutputModule}" -DDebugModule="${DebugModule}" -DBaseMap="${BaseMap}" -DDefaultMap="${DefaultMap}" -DPartialMaps="${PartialMapsExpanded}" "${CMakeListsPath}" +return_code=$? +if [ $return_code != 0 ] ; then + echo "Error in cmake. Exiting..." + exit $return_code +fi + make +return_code=$? +if [ $return_code != 0 ] ; then + echo "Error in make. Exiting..." + exit $return_code +fi echo "Firmware has been compiled into: '${BuildPath}'" +cd -