version 1.79, 2013/04/23 14:32:53 |
version 1.80, 2013/05/22 12:14:08 |
|
|
return; |
return; |
} |
} |
|
|
/* All the children were made ok. Now cmtime contains the |
/* All the children were made ok. Now youngest poinst to |
* modification time of the newest child, we need to find out |
* the newest child, we need to find out |
* if we exist and when we were modified last. The criteria |
* if we exist and when we were modified last. The criteria |
* for datedness are defined by the Make_OODate function. */ |
* for datedness are defined by the Make_OODate function. */ |
if (DEBUG(MAKE)) |
if (DEBUG(MAKE)) |
|
|
* havoc with files that depend on this one. |
* havoc with files that depend on this one. |
*/ |
*/ |
if (noExecute || is_out_of_date(Dir_MTime(gn))) |
if (noExecute || is_out_of_date(Dir_MTime(gn))) |
ts_set_from_now(gn->mtime); |
clock_gettime(CLOCK_REALTIME, &gn->mtime); |
if (is_strictly_before(gn->mtime, gn->cmtime)) |
if (is_strictly_before(gn->mtime, gn->youngest->mtime)) |
gn->mtime = gn->cmtime; |
gn->mtime = gn->youngest->mtime; |
if (sib != gn) { |
if (sib != gn) { |
if (noExecute || is_out_of_date(Dir_MTime(sib))) |
if (noExecute || is_out_of_date(Dir_MTime(sib))) |
ts_set_from_now(sib->mtime); |
clock_gettime(CLOCK_REALTIME, |
if (is_strictly_before(sib->mtime, sib->cmtime)) |
&sib->mtime); |
sib->mtime = sib->cmtime; |
if (is_strictly_before(sib->mtime, |
|
sib->youngest->mtime)) |
|
sib->mtime = sib->youngest->mtime; |
} |
} |
if (DEBUG(MAKE)) |
if (DEBUG(MAKE)) |
printf("update time: %s\n", |
printf("update time: %s\n", |
time_to_string(gn->mtime)); |
time_to_string(&gn->mtime)); |
if (!(gn->type & OP_EXEC)) { |
if (!(gn->type & OP_EXEC)) { |
pgn->childMade = true; |
pgn->childMade = true; |
Make_TimeStamp(pgn, gn); |
Make_TimeStamp(pgn, gn); |