NMAKE Help (nmake.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Inherited Macros
                                             Up Contents Index Back
─────NMAKE──────────────────────────────────────────────────────────────────
 
     When NMAKE is called recursively, the only macros that are
     inherited by the called NMAKE are those defined on the command
     line or in environment variables. Macros defined in the makefile
     are not inherited when NMAKE is called recursively.
     See: Calling NMAKE Recursively
          Environment-Variable Macros
          Where to Define Macros
 
     To pass macros to a recursive NMAKE session:
 
        ■ Run NMAKE with the /V option to cause all macros to be
          inherited by the recursively called NMAKE. Use /V on the
          global NMAKE command to affect the entire session, or specify
          it in a command for a recursive NMAKE call to affect just the
          recursive session.
          See: /V Option
 
        ■ Use the SET command before the recursive call to set an
          environment variable for the called NMAKE session.
 
        ■ Define a macro on the command line for the recursive call.
 
        ■ Define a macro in TOOLS.INI. Each recursively called NMAKE
          reads TOOLS.INI.
          See: The TOOLS.INI File
                                    -♦-