Multiple Dependency Blocks Are Not Cumulative (59526)
The information in this article applies to:
- Microsoft NMAKE Utility for MS-DOS 1.01
- Microsoft NMAKE Utility for MS-DOS 1.1
- Microsoft NMAKE Utility for MS-DOS 1.11
- Microsoft NMAKE Utility for MS-DOS 1.12
- Microsoft NMAKE Utility for MS-DOS 1.13
- Microsoft NMAKE Utility for MS-DOS 1.2
- Microsoft NMAKE Utility for MS-DOS 1.3
- Microsoft NMAKE Utility for MS-DOS 1.4
- Microsoft NMAKE Utility for OS/2 1.01
- Microsoft NMAKE Utility for OS/2 1.11
- Microsoft NMAKE Utility for OS/2 1.12
- Microsoft NMAKE Utility for OS/2 1.13
- Microsoft NMAKE Utility for OS/2 1.21
- Microsoft NMAKE Utility for Windows NT 1.4
- Microsoft NMAKE Utility for Windows NT 1.5
This article was previously published under Q59526 SUMMARY
If a target is specified in more than one dependency block, some files
may not be built. For example, consider a make file that contains
dependencies such as the following:
MYAPP.EXE :: MYAPP1.obj
MYAPP.EXE :: MYAPP2.obj
MYAPP.EXE :: MYAPP3.obj
link MYAPP.exe
MYAPP.EXE :: MYAPP.RES
RC MYAPP.RES MYAPP.EXE
If MYAPP1.OBJ and MYAPP2.OBJ are newer than MYAPP.EXE, but MYAPP3.OBJ
is not, NMAKE does not build MYAPP.EXE. To further confuse the issue,
the following is the output from NMAKE when the /d (display file
dates) option is specified:
C:\>NMAKE /d myapp.mak
myapp.exe Wed Mar 07 08:42:38 1990
myapp1.obj Thu Mar 08 15:25:44 1990
** myapp1.obj newer than myapp.exe
myapp2.obj Wed Mar 08 08:38:56 1990
** myapp2.obj newer than myapp.exe
myapp3.obj Thu Mar 01 09:49:52 1990
myapp.res Thu Mar 01 09:49:52 1990
'myapp.exe' is up-to-date
Obviously, NMAKE determines that the MYAPP1.OBJ and MYAPP2.OBJ files
have later dates, but it does not link MYAPP.EXE.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | KB59526 |
---|
|