From 7911c0536c03bca81304521bf7594366a6449044 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 21 Jul 2021 23:54:35 +0100 Subject: default.o.do: Remove the need for a temporary depfile By making .compile print dependencies on stdout, the need for a temporary depfile is now gone as the dependencies can be piped straight into parse-depfile. --- .compile.do | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.compile.do') diff --git a/.compile.do b/.compile.do index 6634b55..3f48dc4 100755 --- a/.compile.do +++ b/.compile.do @@ -4,5 +4,5 @@ redo-ifchange .vars.rc exec >"$3" echo "# generated by $0" declare -p CC CFLAGS CPPFLAGS -echo '"$CC" -MMD -MF "$depfile" "${CFLAGS[@]}" "${CPPFLAGS[@]}" -c -o "$3" "${1%.o}.c"' +echo '"$CC" -MMD -MF - "${CFLAGS[@]}" "${CPPFLAGS[@]}" -c -o "$3" "${1%.o}.c"' if command -v redo-stamp &>/dev/null; then redo-stamp <"$3"; fi -- cgit v1.2.3-54-g00ecf