ENH: settings.(c)sh: added checking on SGIMPI MPI_ROOT
[OpenFOAM-2.0.x.git] / Allwmake
blob16edfd1f6fdac8bcedefc29b5890bfd7182017f0
1 #!/bin/sh
2 cd ${0%/*} || exit 1 # run from this directory
4 wmakeCheckPwd "$WM_PROJECT_DIR" || {
5 echo "Error: Current directory is not \$WM_PROJECT_DIR"
6 echo " The environment variables are inconsistent with the installation."
7 echo " Check the OpenFOAM entries in your dot-files and source them."
8 exit 1
11 [ -n "$FOAM_EXT_LIBBIN" ] || {
12 echo "Error: FOAM_EXT_LIBBIN not set"
13 echo " Check the OpenFOAM entries in your dot-files and source them."
14 exit 1
17 # wmake is required for subsequent targets
18 ( cd wmake/src && make )
20 # build ThirdParty sources
21 if [ -d "$WM_THIRD_PARTY_DIR" ]
22 then
23 $WM_THIRD_PARTY_DIR/Allwmake
24 else
25 echo "no ThirdParty sources found - skipping"
28 # build OpenFOAM libraries and applications
29 src/Allwmake
30 applications/Allwmake
32 if [ "$1" = doc ]
33 then
34 doc/Allwmake
37 # ----------------------------------------------------------------- end-of-file