Ignore:
Timestamp:
2012-06-26T10:49:36+12:00 (12 years ago)
Author:
jmt12
Message:

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

Location:
gs2-extensions/parallel-building/trunk/src/packages/CASCADE-MAKE
Files:
4 edited

Legend:

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

    r24690 r25812  
    1313opt_run_perl_configure $force_config $auto_config $package $version $prefix
    1414
    15 opt_run_make $compile   $package $version
    16 opt_run_make $install   $package $version "install"
     15# We only compile if necessary, as compilation is quite slow and we don't
     16# edit these source files
     17if [[ ! -e "$GEXTPARALLELBUILDING_INSTALLED/share/perl/5.12.4/IPC/Run.pm" ]]
     18then
     19  opt_run_make $compile   $package $version
     20  opt_run_make $install   $package $version "install"
     21else
     22  echo "IPC::Run Perl module already compiled => no need to recompile"
     23fi
     24
    1725opt_run_make $clean     $package $version "clean"
    1826opt_run_make $distclean $package $version "distclean"
  • 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"
  • gs2-extensions/parallel-building/trunk/src/packages/CASCADE-MAKE/PROCDAEMON.sh

    r24690 r25812  
    1313opt_run_perl_configure $force_config $auto_config $package $version $prefix
    1414
    15 opt_run_make $compile   $package $version
    16 opt_run_make $install   $package $version "install"
     15# We only compile if necessary, as compilation is quite slow and we don't
     16# edit these source files
     17if [[ ! -e "$GEXTPARALLELBUILDING_INSTALLED/share/perl/5.12.4/Proc/Daemon.pm" ]]
     18then
     19  opt_run_make $compile   $package $version
     20  opt_run_make $install   $package $version "install"
     21else
     22  echo "Proc::Daemon Perl module already compiled => no need to recompile"
     23fi
     24
    1725opt_run_make $clean     $package $version "clean"
    1826opt_run_make $distclean $package $version "distclean"
  • gs2-extensions/parallel-building/trunk/src/packages/CASCADE-MAKE/TINYXML.sh

    r24837 r25812  
    1515# Only compile if necessary - we don't edit these source files.
    1616if [ ! -e "$GEXTPARALLELBUILDING_INSTALLED/lib/libtinyxml.a" ]
    17   then
    18     opt_run_make $compile   $package $version
    19   else
    20     echo "TinyXML library already compiled => no need to recompile"
     17then
     18  opt_run_make $compile   $package $version
     19  opt_run_make $install   $package $version "install"
     20else
     21  echo "TinyXML library already compiled => no need to recompile"
    2122fi
    2223
    23 opt_run_make $install   $package $version "install"
    2424opt_run_make $clean     $package $version "clean"
    2525opt_run_make $distclean $package $version "distclean"
Note: See TracChangeset for help on using the changeset viewer.