scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit d5fef04040e76e611d83d6c81802bd9841fea9cf
parent 79e33221d5143a7834b4ddaccab78c2303a9bb54
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 18 Jan 2024 13:02:09 +0100

make: Touch target instead of name

The name field is used by the inference rule to keep
the suffixes involved in the rule while target is
always the name of rule target, in target or inference
rules.

Diffstat:
Msrc/cmd/make/rules.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/make/rules.c b/src/cmd/make/rules.c @@ -303,7 +303,7 @@ run(Target *tp) } if (tflag) { - r = touch(tp->name, ignore, silent); + r = touch(tp->target, ignore, silent); if (r) return r; }