Built-in commands are operations handled internally by NMAKE32, rather than passed out to the operating system. All built-in commands begin with a percent sign (%).
This built-in command can be used to set up generic rules which can be invoked repetitively from different points in your description file. Note that it does not matter where other_target was defined, as long as it is visible to NMAKE32 during the processing of your description file.
Example:
# Use the %do command in the target/dependency # command using the target comp_rule: This target # is not listed as a dependent of any other target, # and is only accessible via the %do command. comp_rule: $(CC) -c -fo$@ $< all: test1.obj test2.obj # define targets to build test1.obj: test1.c # first target/dep pair %do comp_rule # %do command test2.obj: test2.c # second target/dep pair $(CC) /c -fo$@ $< # use explicit command