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.
Defining a Macro
                                             Up Contents Index Back
─────NMAKE──────────────────────────────────────────────────────────────────
 
     To define a macro, use the following syntax:
 
          macroname=string
 
     The <macroname> can be any combination of letters, digits, and the
     underscore (_) character, up to 1024 characters. Macro names are
     case sensitive. The <macroname> can contain a macro invocation. If
     <macroname> consists entirely of an invoked macro, the macro being
     invoked cannot be null or undefined.
     See: Null Macros and Undefined Macros
          Special Characters in Macros
          Using Macros
 
     The <string> can be any sequence of zero or more characters up to
     64K-25 (65,510 bytes). A string of zero characters is a null
     string. A string consisting only of spaces, tabs, or both is also
     a null string. The <string> can contain an invoked macro.
 
     Other syntax rules apply depending on where you specify the macro.
     See: Where to Define Macros
 
     Example
 
          DIR=c:\objects
 
     This example defines a macro named DIR and assigns to it a string
     that represents a directory.
                                    -♦-