Macros on the Command Line

Before using a macro, you need to define it, either on the NMAKE command line or in your description file. Command-line macro definitions look like this:

macroname=macrostring

No spaces can surround the equal sign. If you embed spaces, NMAKE might misinterpret your macro. If your macro string contains embedded spaces, enclose it in double quotation marks ( " ) like this:

macroname="macro string"

or simply enclose the entire macro definition in double quotation marks ( " ) like this:

"macroname = macro string"

Macro names can be any combination of alphanumeric characters and the underscore character ( _ ), and they are case-sensitive. A macro string can be any string of characters or a null string.


[Back: Macros in a Description File]
[Next: Inherited Macros]