Skip to content

More control for making or skipping make

When building with or without modules, it will be useful to selective suppress building of some components.

  • compile all of OpenFOAM, but without any modules
  • later compile a module indvidually

I'm thinking of places where we might want to have a module such as visualization, or adios added as an additional RPM or spack package on top of an existing OpenFOAM installation.

Ideas:

  1. If a Allwmake.disabled exists at the same level as a Allwmake file, skip it.
  2. Use a Allwmake.override instead of Allwmake file at the same level.
  3. Rename Allwmake file to Allwmake.enabled and symlink back to Allwmake when it is enabled.
  4. Add in a minor logic into the overridable Allwmake. For example,
    enabled=true
    if [ "$enabled" != true ]
    then
        echo "$0: is disabled"
        exit 0
    fi

@Development

Edited by Mark OLESEN