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

File:
1 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"
Note: See TracChangeset for help on using the changeset viewer.