This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/Allwmake

28 lines
677 B
Text
Raw Normal View History

#!/bin/sh
2010-09-22 18:13:13 +00:00
cd ${0%/*} || exit 1 # run from this directory
2010-09-22 18:13:13 +00:00
if [ "$PWD" != "$WM_PROJECT_DIR" ]
then
echo "Error: Current directory is not \$WM_PROJECT_DIR"
echo " The environment variable are not consistent with the installation."
echo " Check the OpenFOAM entries in your dot-files and source them."
exit 1
fi
# wmake is required for subsequent targets
2010-09-22 18:13:13 +00:00
( cd wmake/src && make )
2010-09-22 18:13:13 +00:00
# build ThirdParty sources
( cd $WM_THIRD_PARTY_DIR && ./Allwmake )
2010-09-22 18:13:13 +00:00
# build OpenFOAM libraries and applications
src/Allwmake
applications/Allwmake
if [ "$1" = doc ]
then
2010-09-22 18:13:13 +00:00
doc/Allwmake
fi
2010-09-22 18:13:13 +00:00
# ----------------------------------------------------------------- end-of-file