Doh, previous revision made .depend to be almost always out of date.

Spotted by:	bde

Fortunately, we have a powerful make(1).  Apply some black magic to
make it DTRT.  (Better viewed as diff to revision 1.30.)
This commit is contained in:
Ruslan Ermilov 2002-04-17 05:42:18 +00:00
parent 334f706177
commit 70e82473a4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94922

View File

@ -80,8 +80,7 @@ depend: beforedepend ${DEPENDFILE} afterdepend _SUBDIR
# Different types of sources are compiled with slightly different flags.
# Split up the sources, and filter out headers and non-applicable flags.
${DEPENDFILE}: _MKDEP
_MKDEP: ${SRCS}
${DEPENDFILE}: ${SRCS}
rm -f ${DEPENDFILE}
.if ${SRCS:M*.[sS]} != ""
${MKDEPCMD} -f ${DEPENDFILE} -a ${MKDEP} \
@ -107,8 +106,8 @@ _MKDEP: ${SRCS}
${.ALLSRC:M*.m}
.endif
.if target(_EXTRADEPEND)
_EXTRADEPEND: .USE
${DEPENDFILE}: _EXTRADEPEND
.ORDER: _MKDEP _EXTRADEPEND
.endif
.ORDER: ${DEPENDFILE} afterdepend