aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-20 13:11:56 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-20 13:11:56 +0200
commit81ad5bea2fab5eec6c4d9a017f1acc5a53dbde47 (patch)
treef9d4de06be3418780b4af16138623c0f88980e30
parentb852a1a422a99e7b31ac6ad991cf0893bf2e6d59 (diff)
Use fmdnewer() & fmdolder()
-rw-r--r--make.c6
1 files 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]);
}