Extmake Switch Does Not Expand Macros

ID Number: Q68379

1.11 | 1.11

MS-DOS | OS/2

buglist1.11

Summary:

The following NMAKE description file shows that macro substitution

does not occur when using the extmake switch.

To show the error, set SUBDIR to a subdirectory and execute NMAKE on

the makefile while in ANOTHER subdirectory.

Sample Makefile

---------------

SUBDIR = subdir

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

cl %|pfeF

Resulting command: cl $(SUBDIR)\foo.c

The workaround for this particular problem is to replace the extmake

switch with the predefined macros (that is, $** and $?).