Microsoft KB Archive/68379

= FIX: NMAKE Filename-Parts Syntax Does Not Expand Macros =

Article ID: 68379

Article Last Modified on 10/23/2003

-

APPLIES TO


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

-



This article was previously published under Q68379



SYMPTOMS
An attempt to use macro substitution with the filename-parts syntax or the extmake option switch fails.



RESOLUTION
To work around this problem, replace the extmake switch with the appropriate predefined macros (such as $** and $?).



STATUS
Microsoft has confirmed this to be a problem with NMAKE. It was corrected in NMAKE version 1.2 for MS-DOS and OS/2.



MORE INFORMATION
To demonstrate this error, specify a directory in the SUBDIR variable. Set the current directory to a different directory and run NMAKE. The file produces the following command line:

cl $(SUBDIR)\myfile.c

Sample Makefile
SUBDIR = subdir

myfile.exe: $(SUBDIR)\myfile.c

cl %|pfeF

Keywords: kbfix kb16bitonly KB68379

-

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

© Microsoft Corporation. All rights reserved.