diff options
author | fjoe <fjoe@FreeBSD.org> | 2007-04-20 06:33:25 +0000 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2007-04-20 06:33:25 +0000 |
commit | 711037246e3ddfae7d52ff44a0f5d8d1c50e20eb (patch) | |
tree | cd30975b6b93db0a08c46c33c856835f3ec55609 /usr.bin/make/make.c | |
parent | 5abc85136d3414fb5078dd4b13d33911966818f4 (diff) | |
download | FreeBSD-src-711037246e3ddfae7d52ff44a0f5d8d1c50e20eb.zip FreeBSD-src-711037246e3ddfae7d52ff44a0f5d8d1c50e20eb.tar.gz |
Improve logging when -dm is specified: if the node is considered
out-of-date print not only "modified before source" message
but also the path of youngest source.
Diffstat (limited to 'usr.bin/make/make.c')
-rw-r--r-- | usr.bin/make/make.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/usr.bin/make/make.c b/usr.bin/make/make.c index 9a39a9e..4ac5bb6 100644 --- a/usr.bin/make/make.c +++ b/usr.bin/make/make.c @@ -118,6 +118,7 @@ Make_TimeStamp(GNode *pgn, GNode *cgn) if (cgn->mtime > pgn->cmtime) { pgn->cmtime = cgn->mtime; + pgn->cmtime_gn = cgn; } return (0); } @@ -223,7 +224,8 @@ Make_OODate(GNode *gn) * Make does it. */ if (gn->mtime < gn->cmtime) { - DEBUGF(MAKE, ("modified before source...")); + DEBUGF(MAKE, ("modified before source (%s)...", + gn->cmtime_gn ? gn->cmtime_gn->path : "???")); } else if (gn->mtime == 0) { DEBUGF(MAKE, ("non-existent and no sources...")); } else { @@ -421,14 +423,9 @@ Make_Update(GNode *cgn) pgn->unmade -= 1; if (!(cgn->type & (OP_EXEC | OP_USE))) { - if (cgn->made == MADE) { + if (cgn->made == MADE) pgn->childMade = TRUE; - if (pgn->cmtime < cgn->mtime) { - pgn->cmtime = cgn->mtime; - } - } else { - Make_TimeStamp(pgn, cgn); - } + Make_TimeStamp(pgn, cgn); } if (pgn->unmade == 0) { /* |