source: gs2-extensions/parallel-building/trunk/src/packages/CASCADE-MAKE/OPENMPI.sh@ 25812

Last change on this file since 25812 was 25812, checked in by jmt12, 12 years ago

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

  • Property svn:executable set to *
File size: 928 bytes
RevLine 
[24591]1#!/bin/bash
2
3package=openmpi
4version=-1.4.3
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXTPARALLELBUILDING ../.. $*
9
10prefix=$GEXTPARALLELBUILDING_INSTALLED
11
[24837]12opt_run_untar $force_untar $auto_untar $package $version
13opt_run_configure $force_config $auto_config $package $version $prefix
14
15# We only compile if necessary, as compilation is quite slow and we don't
16# edit these source files
[25812]17if [[ ! -e "$GEXTPARALLELBUILDING_INSTALLED/lib/libmpi.so" || ! -e "$GEXTPARALLELBUILDING_INSTALLED/bin/mpic++" || ! -e "$GEXTPARALLELBUILDING_INSTALLED/bin/mpirun" ]]
[24591]18 then
19 opt_run_make $compile $package $version
[25812]20 opt_run_make $install $package $version "install"
[24591]21 else
22 echo "Open MPI library and binaries already compiled => no need to recompile"
23fi
24
[24837]25opt_run_make $clean $package $version "clean"
26opt_run_make $distclean $package $version "distclean"
[24591]27
[24837]28opt_run_tarclean $tarclean $package $version
[24591]29
30
31
32
[24837]33
34
Note: See TracBrowser for help on using the repository browser.