KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q68388: $$(@F) Macro Doesn’t Work with NMAKE Version 1.01

Article: Q68388
Product(s): See article
Version(s): 1.01   | 1.01
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | buglist1.01 fixlist1.11 | mspl13_basic
Last Modified: 24-JAN-1991

The $$(@F) macro illustrated on page 297 of the "Microsoft FORTRAN
CodeView and Utilities User's Guide" for version 5.00 will not
function correctly in NMAKE version 1.01. This has been corrected in
NMAKE version 1.11, which shipped with Microsoft C version 6.00.

The following is the example from page 297:

DIR=c:\include
$(DIR)\global.h $(DIR)\types.h $(DIR)\macros.h: $$(@F)
     !COPY $? $@

With NMAKE version 1.01, this will only work for the first file in the
list. Subsequent files are not processed. NMAKE 1.11 correctly copies
all three files to the c:\include directory.

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.