]> Creatis software - clitk.git/blobdiff - fast_make.sh
move clitkConfiguration.h out of clitkCommon to avoid costly recompilations
[clitk.git] / fast_make.sh
index 9309c87faaa5dfe660dd17662685d4be2b24860e..0ee2e4fa360a2dc857998abbd70c8158bfdd733a 100755 (executable)
@@ -1,8 +1,9 @@
 #!/bin/bash
 vv_dir=$(dirname $(readlink -e $(which $0)))
-echo vv directory: $vv_dir
+echo clitk3 directory: $vv_dir
 cd ${vv_dir}/build
 
+
 function handle_exit
 {
     rm mem_use 2>>/dev/null
@@ -27,6 +28,7 @@ then
    make -j${cpus}
 else #use all the available computing power by default
     cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 0 ))
+    echo "Building with ${cpus} cpus..."
 fi
 
 nice -n12 ionice -c3 make -j ${cpus} $@ &
@@ -66,5 +68,6 @@ do
     sleep 1
 done
 rm memory_exhausted_lock 2>>/dev/null
+wait
 echo Done!
 echo