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:
parent
7af4726714
commit
67dad90513
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user