After a macro has been defined, it can be used anywhere in a description file using the following syntax:
$(name)
The parentheses are not required if the macro name is only one character long. To use a dollar sign ($) without using a macro, enter two dollar signs ($$), or use the caret (^) before the dollar sign as an escape character.
When NMAKE32 runs, it replaces all occurrences of $(name) with the defined macro string. If the macro is undefined, a null string is substituted. Defined macros can be undefined with the !UNDEF directive.
Example:
To echo the following line to the screen:
$(HELLO) is HI
The macro must be referenced with double dollar signs ($$), as shown in the following description file excerpt:
HELLO = HI dummy: @echo $$(HELLO) is $(HELLO)