git: e9d6b699d840 - main - kern.post.mk we need .MAKE.DEPENDFILE for DIRDEPS_BUILD

From: Simon J. Gerraty <sjg_at_FreeBSD.org>
Date: Sun, 05 Feb 2023 22:51:15 UTC
The branch main has been updated by sjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=e9d6b699d8407297f93c06ae243027d8af2e5b1f

commit e9d6b699d8407297f93c06ae243027d8af2e5b1f
Author:     Simon J. Gerraty <sjg@FreeBSD.org>
AuthorDate: 2023-02-05 22:50:31 +0000
Commit:     Simon J. Gerraty <sjg@FreeBSD.org>
CommitDate: 2023-02-05 22:50:31 +0000

    kern.post.mk we need .MAKE.DEPENDFILE for DIRDEPS_BUILD
    
    When MK_DIRDEPS_BUILD is yes, we need .MAKE.DEPENDFILE left
    alone
    
    Reviewed by:    stevek
---
 sys/conf/kern.post.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
index 7aac581fdb0f..da234d5b88a6 100644
--- a/sys/conf/kern.post.mk
+++ b/sys/conf/kern.post.mk
@@ -262,6 +262,7 @@ genoffset.o genassym.o vers.o: opt_global.h
 .if !empty(.MAKE.MODE:Unormal:Mmeta) && empty(.MAKE.MODE:Unormal:Mnofilemon)
 _meta_filemon=	1
 .endif
+.if ${MK_DIRDEPS_BUILD} == "no"
 # Skip reading .depend when not needed to speed up tree-walks and simple
 # lookups.  For install, only do this if no other targets are specified.
 # Also skip generating or including .depend.* files if in meta+filemon mode
@@ -277,6 +278,7 @@ _SKIP_DEPEND=	1
 .if defined(_SKIP_DEPEND) || defined(_meta_filemon)
 .MAKE.DEPENDFILE=	/dev/null
 .endif
+.endif
 
 kernel-depend: .depend
 SRCS=	assym.inc offset.inc vnode_if.h ${BEFORE_DEPEND} ${CFILES} \