bsd.subdir.mk skip _SUBDIR for DIRDEPS_BUILD
For DIRDEPS_BUILD we want to ignore _SUBDIR regardless of .MAKE.LEVEL Reviewed by: stevek Differential Revision: https://reviews.freebsd.org/D51454
This commit is contained in:
@@ -76,13 +76,14 @@ obj: .PHONY
|
||||
.endif
|
||||
|
||||
.if !defined(NEED_SUBDIR)
|
||||
# .MAKE.DEPENDFILE==/dev/null is set by bsd.dep.mk to avoid reading
|
||||
# Makefile.depend
|
||||
.if ${.MAKE.LEVEL} == 0 && ${MK_DIRDEPS_BUILD} == "yes" && !empty(SUBDIR) && \
|
||||
${.MAKE.DEPENDFILE} != "/dev/null"
|
||||
.include <meta.subdir.mk>
|
||||
.if ${MK_DIRDEPS_BUILD} == "yes"
|
||||
# ignore this
|
||||
_SUBDIR:
|
||||
# .MAKE.DEPENDFILE==/dev/null is set by bsd.dep.mk to avoid reading
|
||||
# Makefile.depend
|
||||
.if ${.MAKE.LEVEL} == 0 && !empty(SUBDIR) && ${.MAKE.DEPENDFILE} != "/dev/null"
|
||||
.include <meta.subdir.mk>
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user