diff --git a/bootstrap/easyChams/compile.sh b/bootstrap/easyChams/compile.sh index a4ab8a31..bcac6239 100755 --- a/bootstrap/easyChams/compile.sh +++ b/bootstrap/easyChams/compile.sh @@ -1,13 +1,14 @@ #!/bin/bash +ARCH=`uname -m` if [ ! -e "./compile.sh" ]; then echo "You must run compile.sh in its own direcotry : ./compile.sh" exit 1 fi -if [ ! -d "build" ]; then +if [ ! -d "$ARCH/build" ]; then echo "Creating build directory" - mkdir build + mkdir -p $ARCH/build fi -cd build && cmake .. && make DESTDIR=.. -j2 install +cd $ARCH/build && cmake ../.. && make DESTDIR=.. -j2 install