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

ID Number: Q64032

1.11 | 1.11

MS-DOS | OS/2

docerr

Summary:

Page 114 of the "Microsoft C Advanced Programming Techniques" manual

that ships with C versions 6.0, 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

In reality, both macros give the value of the full path, filename, and

extension, or:

C:\SOURCE\PROG\SORT.OBJ

This problem can be reproduced by creating a simple test MAKE file.

The following is an example:

Target : c:\autoexec.bat

echo $(@D)

Running NMAKE with this file gives the following result:

echo c:\config.sys

c:\config.sys

Additional reference words: 6.00 6.00a 6.00ax