aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--out/CC.do6
1 files changed, 2 insertions, 4 deletions
diff --git a/out/CC.do b/out/CC.do
index a29c504..97de1ca 100644
--- a/out/CC.do
+++ b/out/CC.do
@@ -4,9 +4,7 @@ redo-ifchange config.sh
exec >$3
cat <<-EOF
redo-ifchange \$SRCDIR/\$2.c
- IFS= read DEPS << END
- \$($CC $CFLAGS -MD -MF /dev/fd/1 -o \$3 -c \$SRCDIR/\$2.c)
- END
- redo-ifchange \${DEPS#*:}
+ $CC $CFLAGS -MD -MF /dev/fd/1 -o \$3 -c \$SRCDIR/\$2.c | sed 's/^[^:]*://g'|
+ sed 's/ \\\\$//g' | xargs redo-ifchange
EOF
chmod +x $3