BUG: Inference Rules Not Invoked on Multiple TargetsLast reviewed: January 24, 1995Article ID: Q75206 |
The information in this article applies to:
SYMPTOMSThe 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.
RESOLUTIONTo work around this problem, either avoid the use of multiple dependency lines for a single target, or do not use inference rules.
STATUSMicrosoft 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 INFORMATIONWhen 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# NMAKE options needed: none # inference rule that should be invoked .obj.exe: LINK /INFO TEST.OBJ;all : test.exe # default inference rule executed for single target test.obj : test.c # inference rule not executed for multiple targets test.exe :: test.obj test.exe :: test.def echo Not using .DEF file |
Additional reference words: 1.11 1.12 1.13 1.20 1.21 1.30 1.40 1.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |