Show
Ignore:
Timestamp:
26.06.2012 10:49:36 (8 years ago)
Author:
jmt12
Message:

Adding conditional blocks so that packages are only rebuilt if they missing from the install directory

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/packages/CASCADE-MAKE/OPENMPI.sh

    r24837 r25812  
    1515# We only compile if necessary, as compilation is quite slow and we don't 
    1616# edit these source files 
    17 if [[ ! -e "$GEXTPARALLELBUILDING_INSTALLED/lib/libmpi.so.0.0.2" || ! -e "$GEXTPARALLELBUILDING_INSTALLED/bin/opal_wrapper" || ! -e "$GEXTPARALLELBUILDING_INSTALLED/bin/orterun" ]] 
     17if [[ ! -e "$GEXTPARALLELBUILDING_INSTALLED/lib/libmpi.so" || ! -e "$GEXTPARALLELBUILDING_INSTALLED/bin/mpic++" || ! -e "$GEXTPARALLELBUILDING_INSTALLED/bin/mpirun" ]] 
    1818  then 
    1919    opt_run_make $compile   $package $version 
     20    opt_run_make $install   $package $version "install" 
    2021  else 
    2122    echo "Open MPI library and binaries already compiled => no need to recompile" 
    2223fi 
    2324 
    24 opt_run_make $install   $package $version "install" 
    2525opt_run_make $clean     $package $version "clean" 
    2626opt_run_make $distclean $package $version "distclean"