KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q44777: NMAKE Uses "makefile " Ignoring File Name on Command Line

Article: Q44777
Product(s): See article
Version(s): 1.00
Operating System(s): MS-DOS
Keyword(s): ENDUSER | S_QuickC | mspl13_basic
Last Modified: 10-NOV-1989

When using NMAKE, you normally put the makefile's name on the command
line as follows:

   NMAKE test.mak

Although this works correctly for most cases, if there is a file named
"makefile." in the current working directory, NMAKE uses that file
instead of the one specified on the command line.

To be sure NMAKE uses the makefile specified on the command line, you
must have a /F switch before the makefile name as follows:

   NMAKE /F test.mak

This is expected behavior, as documented on Page 156 of the "Microsoft
QuickC ToolKit" manual for QuickC Version 2.00.

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.