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:
- If a
Allwmake.disabled
exists at the same level as aAllwmake
file, skip it. - Use a
Allwmake.override
instead ofAllwmake
file at the same level. - Rename
Allwmake
file toAllwmake.enabled
and symlink back toAllwmake
when it is enabled. - Add in a minor logic into the overridable
Allwmake
. For example,enabled=true if [ "$enabled" != true ] then echo "$0: is disabled" exit 0 fi