Microsoft KB Archive/64032

= DOCERR: NMAKE Predefined Macro $(@D) Has Same Value As $@ =

Article ID: 64032

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft Program Maintenance Utility 1.2
 * Microsoft Program Maintenance Utility 1.4

-



This article was previously published under Q64032



SYMPTOMS
With NMAKE version 1.11 the predefined macros $@ and $(@D) both expand to the same value. Page 114 of the &quot;Microsoft C Advanced Programming Techniques&quot; manual that ships with C versions 6.0 and 6.0a shows an example value of the predefined NMAKE macro $@ as:

C:\SOURCE\PROG\SORT.OBJ

The macro $(@D) is listed as having a sample value of:

C:\SOURCE\PROG

With NMAKE version 1.11, both macros give the value of the full path, filename, and extension, or:

C:\SOURCE\PROG\SORT.OBJ



RESOLUTION
This problem has been fixed in NMAKE versions 1.12 and later.



MORE INFORMATION
Running NMAKE version 1.11 with the following makefile gives the result:

echo c:\config.sys c:\config.sys

The result should be:

echo c:\config c:\config

Sample Makefile
c:\config.sys :

echo $(@D)

Additional query words: 1.11

Keywords: kb16bitonly KB64032

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.