summaryrefslogtreecommitdiff
path: root/makedepend.SH
diff options
context:
space:
mode:
Diffstat (limited to 'makedepend.SH')
-rwxr-xr-xmakedepend.SH6
1 files changed, 3 insertions, 3 deletions
diff --git a/makedepend.SH b/makedepend.SH
index 81d49db5bf..336d24cdbd 100755
--- a/makedepend.SH
+++ b/makedepend.SH
@@ -60,12 +60,12 @@ fi
mf=$firstmakefile
if test -f $mf; then
defrule=`<$mf sed -n \
- -e '/^\.c\(\$(OBJ_EXT)\|\.o\):.*;/{' \
+ -e '/^\.c\$(OBJ_EXT):.*;/{' \
-e 's/\$\*\.c//' \
-e 's/^[^;]*;[ ]*//p' \
-e q \
-e '}' \
- -e '/^\.c\(\$(OBJ_EXT)\|\.o\): *$/{' \
+ -e '/^\.c\$(OBJ_EXT): *$/{' \
-e N \
-e 's/\$\*\.c//' \
-e 's/^.*\n[ ]*//p' \
@@ -137,7 +137,7 @@ if $test -s .deptmp; then
$echo "Updating $mf..."
$echo "# If this runs make out of memory, delete /usr/include lines." \
>> $mf.new
- $sed 's|^\(.*\(\$(OBJ_EXT)\|\.o\):\) *\(.*/.*\.c\) *$|\1 \3; '"$defrule \2|" .deptmp \
+ $sed 's|^\(.*\$(OBJ_EXT):\) *\(.*/.*\.c\) *$|\1 \2; '"$defrule \2|" .deptmp \
>>$mf.new
else
$MAKE hlist || ($echo "Searching for .h files..."; \