Merge branch 'master' of ssh://repo.or.cz/srv/git/OpenFOAM-1.6.x
[OpenFOAM-1.6.x.git] / Allwmake
blob3dcdff3e7b3e31a88d1c1d2457bf222f9aaec80e
1 #!/bin/sh
2 cd ${0%/*} || exit 1 # run from this directory
4 if [ "$PWD" != "$WM_PROJECT_DIR" ]
5 then
6 echo "Error: Current directory is not \$WM_PROJECT_DIR"
7 echo " The environment variable are not consistent with the installation."
8 echo " Check the OpenFOAM entries in your dot-files and source them."
9 exit 1
12 # wmake is required for subsequent targets
13 ( cd wmake/src && make )
15 # build ThirdParty sources
16 ( cd $WM_THIRD_PARTY_DIR && ./Allwmake )
18 # build OpenFOAM libraries and applications
19 src/Allwmake
20 applications/Allwmake
22 if [ "$1" = doc ]
23 then
24 doc/Allwmake
27 # ----------------------------------------------------------------- end-of-file