/[MITgcm]/MITgcm/tools/genmake2
ViewVC logotype

Diff of /MITgcm/tools/genmake2

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.46 by adcroft, Tue Nov 25 14:18:50 2003 UTC revision 1.47 by adcroft, Tue Nov 25 14:57:45 2003 UTC
# Line 1486  cleanlinks: Line 1486  cleanlinks:
1486  # Special targets  # Special targets
1487  ${PACKAGES_DOT_H}:  ${PACKAGES_DOT_H}:
1488          @echo Creating \$@ ...          @echo Creating \$@ ...
1489          @\$(TOOLSDIR)/convert_cpp_cmd2defines "Warngin - this file is automatically generated - do NOT edit" -bPACKAGES_CONFIG_H "Disabled packages:" \$(DISABLED_PACKAGES) " " "Enabled packages:" \$(ENABLED_PACKAGES) > \$@          @\$(TOOLSDIR)/convert_cpp_cmd2defines "Warning - this file is automatically generated - do NOT edit" -bPACKAGES_CONFIG_H "Disabled packages:" \$(DISABLED_PACKAGES) " " "Enabled packages:" \$(ENABLED_PACKAGES) > \$@
1490  AD_CONFIG.h:  AD_CONFIG.h:
1491          @echo Creating \$@ ...          @echo Creating \$@ ...
1492          @\$(TOOLSDIR)/convert_cpp_cmd2defines "Warning - this file is automatically generated - do NOT edit" -bAD_CONFIG_H -UALLOW_ADJOINT_RUN -UALLOW_TANGENTLINEAR_RUN -UALLOW_ECCO_OPTIMIZATION > \$@          @\$(TOOLSDIR)/convert_cpp_cmd2defines "Warning - this file is automatically generated - do NOT edit" -bAD_CONFIG_H -UALLOW_ADJOINT_RUN -UALLOW_TANGENTLINEAR_RUN -UALLOW_ECCO_OPTIMIZATION > \$@
# Line 1654  printf "\n\n# DO NOT DELETE\n" >> $MAKEF Line 1654  printf "\n\n# DO NOT DELETE\n" >> $MAKEF
1654    
1655  printf "\n===  Done  ===\n"  printf "\n===  Done  ===\n"
1656    
1657    # Create special header files
1658    $TOOLSDIR/convert_cpp_cmd2defines "Warning - this file is automatically generated - do NOT edit" -bPACKAGES_CONFIG_H "Disabled packages:" $DISABLED_PACKAGES " " "Enabled packages:" $ENABLED_PACKAGES > $PACKAGES_DOT_H".tmp"
1659    if test ! -f $PACKAGES_DOT_H ; then
1660        mv -f $PACKAGES_DOT_H".tmp" $PACKAGES_DOT_H
1661    else
1662        cmp $PACKAGES_DOT_H".tmp" $PACKAGES_DOT_H
1663        RETVAL=$?
1664        if test "x$RETVAL" = x0 ; then
1665            rm -f $PACKAGES_DOT_H".tmp"
1666        else
1667            mv -f $PACKAGES_DOT_H $PACKAGES_DOT_H".bak"
1668            mv -f $PACKAGES_DOT_H".tmp" $PACKAGES_DOT_H
1669        fi
1670    fi
1671    if test ! -f AD_CONFIG.h ; then
1672        $TOOLSDIR/convert_cpp_cmd2defines "Warning - this file is automatically generated - do NOT edit" -UALLOW_ADJOINT_RUN -UALLOW_TANGENTLINEAR_RUN -UALLOW_ECCO_OPTIMIZATION > AD_CONFIG.h
1673    fi
1674    
1675    
1676  #  Write the "state" for future records  #  Write the "state" for future records
1677  if test "x$DUMPSTATE" != xf ; then  if test "x$DUMPSTATE" != xf ; then

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

  ViewVC Help
Powered by ViewVC 1.1.22