Commit e9763199 authored by Alexander Wiebel's avatar Alexander Wiebel

[ADD #85] script now also handles doc and style targets

parent beda1134
......@@ -4,15 +4,17 @@ INTERNAL_LIBDIR=$1
INTERNAL_INCLUDEDIR=$2
echo
PARAM3=$3
PARAM4=$4
if [ "$INTERNAL_LIBDIR" -a "$INTERNAL_INCLUDEDIR" ]; # Test for empty strings
then
echo OPENWALNUT_LIBDIR $INTERNAL_LIBDIR
echo OPENWALNUT_INCLUDEDIR $INTERNAL_INCLUDEDIR
echo
else
echo "Usage: makeAllToolboxes <OPENWALNUT_LIBDIR> <OPENWALNUT_INCLUDEDIR> [number of threads]"
echo "Usage: makeAllToolboxes <OPENWALNUT_LIBDIR> <OPENWALNUT_INCLUDEDIR> [number of threads] [additional option]"
echo "Example: __repository_tools/makeAllToolboxes ../OpenWalnut/build/release/lib/ ../OpenWalnut/src/"
echo "Example: __repository_tools/makeAllToolboxes ../OpenWalnut/build/release/lib/ ../OpenWalnut/src/ 8"
echo "Example: __repository_tools/makeAllToolboxes ../OpenWalnut/build/release/lib/ ../OpenWalnut/src/ 8 stylecheck"
echo
echo "Not enough parameters given, exiting."
exit;
......@@ -25,6 +27,13 @@ else
PARAM3=1
fi
if [ "$PARAM4" ];
then
echo Additional parameter: $PARAM4
else
PARAM4=
fi
# Make relative paths absolute
INTERNAL_LIBDIR=`cd "$INTERNAL_LIBDIR"; pwd`
INTERNAL_INCLUDEDIR=`cd "$INTERNAL_INCLUDEDIR"; pwd`
......@@ -39,6 +48,6 @@ do
mkdir -p build
cd build
OPENWALNUT_LIBDIR="$INTERNAL_LIBDIR" OPENWALNUT_INCLUDEDIR="$INTERNAL_INCLUDEDIR" cmake ../src && make -j$PARAM3
OPENWALNUT_LIBDIR="$INTERNAL_LIBDIR" OPENWALNUT_INCLUDEDIR="$INTERNAL_INCLUDEDIR" cmake ../src && make $PARAM4 -j$PARAM3
cd ../..
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment