Skip to content

Commit

Permalink
Attempt to build all
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Jul 16, 2021
1 parent 6fc419b commit ec1614f
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions tools/make-all
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,23 @@ else
MAKE=make
fi

if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh
else
PRJMAKEFILEGENERATOR=prjMakefilesGenerator.bat
fi
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh;;
Darwin*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh;;
CYGWIN*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh;;
//MINGW*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh;;
*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.bat
esac

echo PRJMAKEFILEGENERATOR=$PRJMAKEFILEGENERATOR

for PROJ in $PROJECTS; do
echo ===========================================
echo $PROJ
echo "$PROJ"
echo ===========================================
if ! $PRJMAKEFILEGENERATOR firmware/$PROJ; then echo "WARNING: failed to regenerate Makefiles."; fi
if ! $MAKE -C firmware/$PROJ "$@"; then echo FAILURE ; exit 1 ; fi
if ! $PRJMAKEFILEGENERATOR firmware/"$PROJ"; then echo "WARNING: failed to regenerate Makefiles."; fi
if ! $MAKE -C firmware/"$PROJ" "$@"; then echo FAILURE ; exit 1 ; fi
done
echo SUCCESS

0 comments on commit ec1614f

Please sign in to comment.