From 81ad5bea2fab5eec6c4d9a017f1acc5a53dbde47 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 20 Jun 2024 13:11:56 +0200 Subject: Use fmdnewer() & fmdolder() --- make.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/make.c b/make.c index 1cc7bd7..4a21735 100644 --- a/make.c +++ b/make.c @@ -153,7 +153,7 @@ cc(void *arg) struct strs cmd = {0}; char *dst = swpext(arg, "o"), *src = arg; - if (!fflag && !foutdatedl(dst, src)) + if (!fflag && fmdnewer(dst, src)) goto out; strspushenvl(&cmd, "CC", "cc"); @@ -183,7 +183,7 @@ gperf(void *arg) struct strs cmd = {0}; char *dst = swpext(arg, "gen.c"), *src = arg; - if (!fflag && !foutdatedl(dst, src)) + if (!fflag && fmdnewer(dst, src)) goto out; strspushl(&cmd, "gperf", src, "--output-file", dst); @@ -217,7 +217,7 @@ ld(void) for (size_t i = 0; i < g.gl_pathc; i++) { if (!tagvalid(g.gl_pathv[i])) continue; - if (foutdatedl(TARGET, g.gl_pathv[i])) + if (fmdolder(TARGET, g.gl_pathv[i])) dobuild = true; strspushl(&cmd, g.gl_pathv[i]); } -- cgit v1.2.3