diff options
author | ru <ru@FreeBSD.org> | 2002-04-17 05:42:18 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-04-17 05:42:18 +0000 |
commit | 67dad905138174ecd0499bf8f4126f3408d630f8 (patch) | |
tree | 2856e320d284857052eec15e9848f53d0a211aee /share | |
parent | 7af47267142e8d5e67c84363aba18aa64e9ef9f7 (diff) | |
download | FreeBSD-src-67dad905138174ecd0499bf8f4126f3408d630f8.zip FreeBSD-src-67dad905138174ecd0499bf8f4126f3408d630f8.tar.gz |
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.)
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.dep.mk | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index d9fae25..3d079bb 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -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 |