summaryrefslogtreecommitdiff
path: root/makedepend.SH
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2016-08-01 11:37:39 +1000
committerTony Cook <tony@develop-help.com>2016-08-01 11:37:39 +1000
commitd58d97f6763c77718dffaa4394087658d7401361 (patch)
tree011154db635c5edde6f0768fcbaa49fe43d3a40b /makedepend.SH
parentec7784b4e79ac75599f2c7705b9389e05d47d1d1 (diff)
downloadperl-d58d97f6763c77718dffaa4394087658d7401361.tar.gz
(perl #128685) generate dependency rules for perlmain$(OBJ_EXT)
Without these rules changes to files like config.sh might not result in perlmain.o being rebuilt. Aristotle Pagaltzis improved this.
Diffstat (limited to 'makedepend.SH')
-rwxr-xr-xmakedepend.SH5
1 files changed, 3 insertions, 2 deletions
diff --git a/makedepend.SH b/makedepend.SH
index 4e203b6872..e4efae52d6 100755
--- a/makedepend.SH
+++ b/makedepend.SH
@@ -231,8 +231,9 @@ if $test -s .deptmp; then
$sed 's|\.incl\.c|.h|' .deptmp >.deptmp.vos
mv -f .deptmp.vos .deptmp
fi
- $sed 's|^\(.*\$(OBJ_EXT):\) *\(.*/.*\.c\) *$|\1 \2; '"$defrule \2|" .deptmp \
- >>$mf.new
+ $sed -e 's|^\(.*\$(OBJ_EXT):\) *\(.*/.*\.c\) *$|\1 \2; '"$defrule \2|" \
+ -e 'h; s/mini\(perlmain\)/\1/p; g' \
+ .deptmp >>$mf.new
else
$MAKE hlist || ($echo "Searching for .h files..."; \
$echo *.h | $tr ' ' $trnl | $egrep -v '\*' >.hlist)