diff options
author | ru <ru@FreeBSD.org> | 2002-04-16 12:27:07 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-04-16 12:27:07 +0000 |
commit | 768e9cceca87541d988656cd2904306ef88fb3a5 (patch) | |
tree | d67137ccf7ce9b57dd371db7550c1d03ac68c10e /share | |
parent | 2a838a2aff1cc5541b4563c115f508f292de5928 (diff) | |
download | FreeBSD-src-768e9cceca87541d988656cd2904306ef88fb3a5.zip FreeBSD-src-768e9cceca87541d988656cd2904306ef88fb3a5.tar.gz |
Don't spawn extra make(1) process to execute _EXTRADEPEND.
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.dep.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index e89f811..d9fae25 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -80,7 +80,8 @@ 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}: ${SRCS} +${DEPENDFILE}: _MKDEP +_MKDEP: ${SRCS} rm -f ${DEPENDFILE} .if ${SRCS:M*.[sS]} != "" ${MKDEPCMD} -f ${DEPENDFILE} -a ${MKDEP} \ @@ -106,7 +107,8 @@ ${DEPENDFILE}: ${SRCS} ${.ALLSRC:M*.m} .endif .if target(_EXTRADEPEND) - cd ${.CURDIR}; ${MAKE} _EXTRADEPEND +${DEPENDFILE}: _EXTRADEPEND +.ORDER: _MKDEP _EXTRADEPEND .endif .ORDER: ${DEPENDFILE} afterdepend |