]> Creatis software - clitk.git/blobdiff - fast_make.sh
move clitkConfiguration.h out of clitkCommon to avoid costly recompilations
[clitk.git] / fast_make.sh
index deb86d6719df9d4812595af215fddc0c89005d09..0ee2e4fa360a2dc857998abbd70c8158bfdd733a 100755 (executable)
@@ -27,7 +27,7 @@ then
    sleep 1
    make -j${cpus}
 else #use all the available computing power by default
-    cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 2 ))
+    cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 0 ))
     echo "Building with ${cpus} cpus..."
 fi
 
@@ -68,5 +68,6 @@ do
     sleep 1
 done
 rm memory_exhausted_lock 2>>/dev/null
+wait
 echo Done!
 echo