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:
ru 2002-04-17 05:42:18 +00:00
parent 7af4726714
commit 67dad90513

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