KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q66474: Documentation Error: Extmake Syntax for %|partsF Incorrect

Article: Q66474
Product(s): See article
Version(s): 1.11   | 1.11
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | docerr | mspl13_basic
Last Modified: 6-NOV-1990

The extmake syntax for determining the complete name of the first
dependent in a NMAKE description file is incorrectly described in the
"Advanced Programming Techniques" manual on Page 124.

The extmake syntax described on Page 124 of the "Advanced Programming
Techniques" manual lists the syntax as

   %|partsF

where parts is one or more of the following:

   Letter            Description
   ------            -----------

   d                 Drive
   e                 File extension
   f                 File base name
   p                 Path
   s                 Complete name

However, "s" is not a valid selection. You may use %s, or you may use
%|partsF, where "parts" is one or more of the above (d, e, f, or p,
but not s). The following makefile illustrates the problem.

Sample Makefile
---------------

   sample.obj: sample.c
        cl /c %|sF

If this makefile is run, it will produce the following error message:

   NMAKE : fatal error U1098: extmake syntax in sF incorrect

The online help specifies the correct syntax for using the extmake
switch:

   Letter     File-Specification Part
   ------     -----------------------

   p          Path
   d          Drive
   f          Base name
   e          Extension

The makefile below shows the correct extmake syntax for obtaining the
complete name of the first dependent:

Correct Makefile
----------------

   sample.obj: sample.c
        cl /c %s

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.