diff options
-rw-r--r-- | miscutils/make.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/miscutils/make.c b/miscutils/make.c index 97ee8d879..c2e12f2ed 100644 --- a/miscutils/make.c +++ b/miscutils/make.c | |||
@@ -2509,9 +2509,11 @@ make(struct name *np, int level) | |||
2509 | free(oodate); | 2509 | free(oodate); |
2510 | } | 2510 | } |
2511 | 2511 | ||
2512 | if (estat & MAKE_DIDSOMETHING) | 2512 | if (estat & MAKE_DIDSOMETHING) { |
2513 | clock_gettime(CLOCK_REALTIME, &np->n_tim); | 2513 | modtime(np); |
2514 | else if (!quest && level == 0 && !timespec_le(&np->n_tim, &dtim)) | 2514 | if (np->n_tim.tv_sec == 0 && np->n_tim.tv_nsec == 0) |
2515 | clock_gettime(CLOCK_REALTIME, &np->n_tim); | ||
2516 | } else if (!quest && level == 0 && !timespec_le(&np->n_tim, &dtim)) | ||
2515 | printf("%s: '%s' is up to date\n", applet_name, np->n_name); | 2517 | printf("%s: '%s' is up to date\n", applet_name, np->n_name); |
2516 | 2518 | ||
2517 | free(allsrc); | 2519 | free(allsrc); |