Q66571: Problem in NMAKE 1.11 with Multiple Dependency Blocks
Article: Q66571 Product(s): See article Version(s): 1.11 | 1.11 Operating System(s): MS-DOS | OS/2 Keyword(s): ENDUSER | buglist1.11 fixlist1.12 s_c | mspl13_basic Last Modified: 9-NOV-1990 The sample makefile below will be correctly executed in all cases except if the target is missing. In that case, both sets of commands will be executed even though the second set is not necessary. Microsoft has confirmed this to be a problem in NMAKE version 1.11. This problem has been corrected in version 1.12, which shipped with Microsoft COBOL version 4.00. Multiple Dependency blocks are supposed to be evaluated one at a time. In the sample makefile, because the target is missing when NMAKE is invoked, it assumes that both sets of commands will need to be invoked. This is incorrect behavior. Sample Makefile --------------- test.exe :: test.obj test.def link /nod test,,,slibcew libw, test.def rc test.res test.exe :: test.res rc test.res
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.