summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdepend.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/depend.sh b/depend.sh
index bfc887c..7e43e21 100755
--- a/depend.sh
+++ b/depend.sh
@@ -6,7 +6,10 @@ CC=$3
shift 3
echo -n "$DEP $DIR/" > $DEP
-( $CC -MM $* || exit 1 ) >> $DEP
+if { !(eval $CC -MM $*) >> $DEP; }; then
+ rm -f $DEP;
+ exit 1;
+fi
#sed -e 's@^\(.*\)\.o:@\1.d \1.o:@'