#!/bin/sh
cd ${0%/*} || exit 1    # run from this directory
set -x

# wmake is required for subsequent targets
( cd wmake/src && make )

# build ThirdParty sources
$WM_PROJECT_DIR/bin/tools/AllwmakeThirdParty

# build OpenFOAM libraries and applications
src/Allwmake
applications/Allwmake

if [ "$1" = doc ]
then
    doc/Allwmake
fi

# ----------------------------------------------------------------- end-of-file