[MITgcm-support] changes in the use of "genmake_local"

Jean-Michel Campin jmc at ocean.mit.edu
Mon Aug 27 09:44:37 EDT 2012


Hi,

Changes have been made last Friday (Aug 24) to genmake2 regarding the
use of the local config file "genmake_local": it is now sourced after
processing all the genmake2 command arguments (as opposed to before
in the previous version). The main reason for this modification is
to offer more possibilities in the use of this local config file.

In practice, after updating your MITgcm code:
1) if you are not using such local config file "genmake_local",
  nothing will change.
2) if the instructions in your genmake_local file do not conflict
  with the list of arguments that you provide to the gemake2 command, 
  nothing will change.
3) in case of a conflict between the the genmake2 arguments and
  the content of genmake_local, the resulting Makefile will
  be different, since the conflicting arguments will be overwritten
  by genmake_local (whereas in the previous version, the conflicting 
  parts of genmake_local were ignored).
However, it should be easy to adapt the content of genmake_local 
to reproduce the old behavior (can post on this list if you need help).
For instance, in verification/adjustment.128x64x1/build/genmake_local
the previous instruction
  MAKEDEPEND=cyrus_makedepend
has been changed to:
  if test "x$MAKEDEPEND" = x ; then MAKEDEPEND=cyrus-makedepend ; fi
so that the resulting Makefile will remains identical to the one
produced by the previous genmake2, even if the genmake2 "-makedepend" 
option is used.

Cheers,
Jean-Michel



More information about the MITgcm-support mailing list