PRB: Commands Executed If Target and Dependent Have Same Time

ID Number: Q81881

1.13 | 1.13

MS-DOS | OS/2

Summary:

SYMPTOMS

With NMAKE version 1.13, if a target and dependent have the same

time stamp, the commands listed for the given target will be

carried out. Earlier versions of NMAKE treat the target as up to

date if the time on both files is the same, and none of the

commands are carried out.

CAUSE

This behavior was implemented in version 1.13 because on faster

systems, files were being updated too fast, and targets that were

really out of date were not being updated. Therefore, NMAKE was

changed to treat targets as out of date even if they had the same

time stamp as the dependent.

STATUS

NMAKE version 1.2 was changed back to treat targets as up to date

if they have the same time stamp as the dependent. However, this

version contains a command-line switch, /B, which will cause NMAKE

to reverse this behavior and execute a dependency even if the time

stamps are equal.