Update ab.

This commit is contained in:
David Given
2025-07-27 20:48:10 +01:00
parent 8e5d52f2c7
commit 3a42911e6f
3 changed files with 17 additions and 6 deletions

View File

@@ -501,11 +501,17 @@ def emit_rule(self, ins, outs, cmds=[], label=None):
emit(f"OUTS_{outsn}", "=", *fouts, into=lines)
emit(f"INS_{insn}", "=", *fins, into=lines)
emit(name, ":", f"$(OUTS_{outsn})")
emit(hashfile, ":")
emit(f"\t@mkdir -p {self.dir}")
emit(f"\t@touch {hashfile}")
emit(f"$(OUTS_{outsn})", "&:",f"$(INS_{insn})", hashfile, into=lines)
emit(name, ":", f"$(OUTS_{outsn})", into=lines)
emit(hashfile, ":", into=lines)
emit(f"\t@mkdir -p {self.dir}", into=lines)
emit(f"\t@touch {hashfile}", into=lines)
emit(
f"$(OUTS_{outsn})",
"&:" if len(fouts) > 1 else ":",
f"$(INS_{insn})",
hashfile,
into=lines,
)
if label:
emit("\t$(hide)", "$(ECHO) $(PROGRESSINFO)" + label, into=lines)