- simplifies code, covers most cases. Can use wmake -show-api or wmakeBuildInfo to query the make rules. STYLE: Allwmake script adjustments - use bin/foamEtcFile instead of relying on PATH. The make environment may not have the OpenFOAM bin/ in it. - simpler shell syntax
27 lines
883 B
Bash
Executable File
27 lines
883 B
Bash
Executable File
#!/bin/sh
|
|
# Run from OPENFOAM applications/ directory only
|
|
cd "${0%/*}" || exit
|
|
wmakeCheckPwd "$WM_PROJECT_DIR/applications" 2>/dev/null || {
|
|
echo "Error (${0##*/}) : not located in \$WM_PROJECT_DIR/applications"
|
|
echo " Check your OpenFOAM environment and installation"
|
|
exit 1
|
|
}
|
|
if [ -f "$WM_PROJECT_DIR"/wmake/scripts/AllwmakeParseArguments ]
|
|
then . "$WM_PROJECT_DIR"/wmake/scripts/AllwmakeParseArguments || \
|
|
echo "Argument parse error";
|
|
else
|
|
echo "Error (${0##*/}) : WM_PROJECT_DIR appears to be incorrect"
|
|
echo " Check your OpenFOAM environment and installation"
|
|
exit 1
|
|
fi
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
wmake -all $targetType solvers
|
|
wmake -all $targetType utilities
|
|
|
|
# Optional
|
|
## wmake -all $targetType tools
|
|
|
|
#------------------------------------------------------------------------------
|