diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-06-20 13:11:56 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-06-20 13:11:56 +0200 |
commit | 81ad5bea2fab5eec6c4d9a017f1acc5a53dbde47 (patch) | |
tree | f9d4de06be3418780b4af16138623c0f88980e30 | |
parent | b852a1a422a99e7b31ac6ad991cf0893bf2e6d59 (diff) |
Use fmdnewer() & fmdolder()
-rw-r--r-- | make.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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]); } |