Microsoft KB Archive/75206

= BUG: Inference Rules Not Invoked on Multiple Targets =

Article ID: 75206

Article Last Modified on 12/1/2003

-

APPLIES TO


 * Microsoft Program Maintenance Utility 1.2
 * Microsoft Program Maintenance Utility 1.3
 * Microsoft Program Maintenance Utility 1.4
 * Microsoft Program Maintenance Utility 1.4
 * Microsoft Program Maintenance Utility 1.4
 * Microsoft Program Maintenance Utility 1.4

-



This article was previously published under Q75206



SYMPTOMS
The Microsoft NMAKE utility may not invoke inference rules when multiple dependency lines are used for a single target as illustrated in the sample makefile below.



RESOLUTION
To work around this problem, either avoid the use of multiple dependency lines for a single target, or do not use inference rules.



STATUS
Microsoft has confirmed this to be a problem in NMAKE versions noted above. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
When NMAKE processes the following sample makefile, the inference rule to build the executable file is not executed. However, the inference rule to build the object file is executed correctly because the object files are build as one target. Also, the commands stated explicitly for multiple targets are executed correctly.

Sample Makefile
.obj.exe: LINK /INFO TEST.OBJ; all : test.exe test.obj : test.c test.exe :: test.obj test.exe :: test.def echo Not using .DEF file
 * 1) NMAKE options needed: none
 * 1) inference rule that should be invoked
 * 1) default inference rule executed for single target
 * 1) inference rule not executed for multiple targets

Additional query words: 1.11 1.12 1.13 1.20 1.21 1.30 1.40 1.50

Keywords: KB75206

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.