Wildcards

You can use DOS wildcards (* and ?) to specify target and dependent names. NMAKE expands wildcards that appear on dependency lines. A wildcard specified in a command is passed to the command; NMAKE does not expand it.

Example

In the following description block, the wildcard * is used twice:

project.exe : *.c

cl *.c /Feproject.exe

NMAKE expands the *.c in the dependency line and looks at all files having the .C extension in the current directory. If any .C file is out-of-date, the CL command expands the *.c and compiles and links all files.