Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/share/mk/bsd.prog.mk,v retrieving revision 1.58 retrieving revision 1.59 diff -u -p -r1.58 -r1.59 --- src/share/mk/bsd.prog.mk 1996/12/13 08:02:52 1.58 +++ src/share/mk/bsd.prog.mk 1996/12/20 16:39:03 1.59 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prog.mk,v 1.58 1996/12/13 08:02:52 mikel Exp $ +# $NetBSD: bsd.prog.mk,v 1.59 1996/12/20 16:39:03 cgd Exp $ # @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 .if exists(${.CURDIR}/../Makefile.inc) @@ -96,6 +96,14 @@ clean: _SUBDIRUSE cleandir: _SUBDIRUSE clean +.if defined(SRCS) +afterdepend: .depend + @(TMP=/tmp/_depend$$$$; \ + sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.ln:/' \ + < .depend > $$TMP; \ + mv $$TMP .depend) +.endif + .if !target(install) .if !target(beforeinstall) beforeinstall: