This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
metaconfig needs these two symlinks
[perl5.git] / makedepend.SH
index 229a73d..3630087 100755 (executable)
@@ -150,6 +150,7 @@ for file in `$cat .clist`; do
         $sed \
            -e '/^#.*<stdin>/d' \
            -e '/^#.*"-"/d' \
+           -e '/^#.*git_version\.h/d' \
            -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
            -e 's/^[     ]*#[    ]*line/#/' \
            -e '/^# *[0-9][0-9]* *[".\/]/!d' \
@@ -170,6 +171,7 @@ for file in `$cat .clist`; do
            -e '/^#.*"-"/d' \
            -e '/^#.*"\/.*\/"/d' \
            -e '/: file path prefix .* never used$/d' \
+           -e '/^#.*git_version\.h/d' \
            -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
            -e 's/^[     ]*#[    ]*line/#/' \
            -e '/^# *[0-9][0-9]* *[".\/]/!d' \
@@ -179,6 +181,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
 done
 
 $sed <$mf >$mf.new -e '1,/^# AUTOMATICALLY/!d'