X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=makedepend.SH;h=e4f82529aeb12f51594df44934c5fb6544e18016;hb=9953ff723fac897df4afc6a69aaa7bfe5e8dc983;hp=5d56d590489963f34f906ce924539a97b61d7241;hpb=96a8704c85b1e14bb3d63195b0b720f2fd5b8182;p=p5sagit%2Fp5-mst-13.2.git diff --git a/makedepend.SH b/makedepend.SH index 5d56d59..e4f8252 100755 --- a/makedepend.SH +++ b/makedepend.SH @@ -83,7 +83,6 @@ if test -f Makefile; then # to be out of date. I don't know if OS/2 has touch, so do this: case "$osname" in os2) ;; - netbsd) ;; *) $touch $firstmakefile ;; esac fi @@ -180,6 +179,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' @@ -211,6 +211,10 @@ if $test -s .deptmp; then $echo "Updating $mf..." $echo "# If this runs make out of memory, delete /usr/include lines." \ >> $mf.new + if [ "$osname" = vos ]; 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 else