summaryrefslogtreecommitdiff
path: root/makedepend.SH
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-05-15 19:40:46 +0200
committerNicholas Clark <nick@ccl4.org>2013-05-20 21:50:45 +0200
commit3ae7e562a2ff05c27052670c20b7ba3b7005bf7b (patch)
tree4cbd7136393a45e7518f04fa94c8233cb5c8ac03 /makedepend.SH
parent0ff64a71c493f41b23ddd052a465c3d40c3264f2 (diff)
downloadperl-3ae7e562a2ff05c27052670c20b7ba3b7005bf7b.tar.gz
Pass in to makedepend the name(s) of files that all objects depend on.
Diffstat (limited to 'makedepend.SH')
-rwxr-xr-xmakedepend.SH4
1 files changed, 2 insertions, 2 deletions
diff --git a/makedepend.SH b/makedepend.SH
index 0c3cf188ef..3ea3a3e5e7 100755
--- a/makedepend.SH
+++ b/makedepend.SH
@@ -39,7 +39,7 @@ mkdir .depending
# This script should be called with
# sh ./makedepend MAKE=$(MAKE)
case "$1" in
- MAKE=*) eval $1 ;;
+ MAKE=*) eval $1; shift ;;
esac
export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh \$0; kill \$\$)
@@ -206,7 +206,7 @@ for file in `$cat .clist`; do
-e 's|\.c\.c|.c|' $uwinfix .cout .cerr| \
$uniq | $sort | $uniq >> .deptmp
fi
- echo "$filebase\$(OBJ_EXT): cflags" >> .deptmp
+ echo "$filebase\$(OBJ_EXT): $@" >> .deptmp
done
$sed <$mf >$mf.new -e '1,/^# AUTOMATICALLY/!d'