diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2016-02-24 17:19:09 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2016-02-24 17:19:09 +0000 |
commit | 68add213442714579fd5bdc73b52a8df0dbbb9cb (patch) | |
tree | 8e293aaa5bd14537e40b96fb23a5a924b2ae7820 /share | |
parent | d7beff082b71fb7d1b4ca94d3cc44d64bbbfb2d6 (diff) | |
download | src-68add213442714579fd5bdc73b52a8df0dbbb9cb.tar.gz src-68add213442714579fd5bdc73b52a8df0dbbb9cb.zip |
FAST_DEPEND: Don't waste time generating an empty .depend file.
The .depend file will still be generated if _EXTRADEPEND is used. The target
is kept with a dependency on DPSRCS though so that 'make depend' will generate
all files.
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=295986
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.dep.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index ec2ac1fc58ef..2b9301eed7d6 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -246,6 +246,8 @@ MKDEP_CXXFLAGS= ${CXXFLAGS:M-nostdinc*} ${CXXFLAGS:M-[BIDU]*} \ .endif # ${MK_FAST_DEPEND} == "no" DPSRCS+= ${SRCS} +# FAST_DEPEND will only generate a .depend if _EXTRADEPEND is used but +# the target is created to allow 'make depend' to generate files. ${DEPENDFILE}: ${DPSRCS} .if ${MK_FAST_DEPEND} == "no" rm -f ${DEPENDFILE} @@ -260,8 +262,6 @@ ${DEPENDFILE}: ${DPSRCS} ${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cpp} ${.ALLSRC:M*.cxx} .else .endif -.else - : > ${.TARGET} .endif # ${MK_FAST_DEPEND} == "no" .if target(_EXTRADEPEND) _EXTRADEPEND: .USE |