git: 498dac0ace44 - main - Update dirdeps.mk for better debug output

From: Simon J. Gerraty <sjg_at_FreeBSD.org>
Date: Mon, 14 Oct 2024 17:31:22 UTC
The branch main has been updated by sjg:

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

commit 498dac0ace44a3ba9eec36ac3a872d5047811a31
Author:     Simon J. Gerraty <sjg@FreeBSD.org>
AuthorDate: 2024-10-14 17:30:39 +0000
Commit:     Simon J. Gerraty <sjg@FreeBSD.org>
CommitDate: 2024-10-14 17:30:39 +0000

    Update dirdeps.mk for better debug output
    
    Latest dirdeps.mk provides better clue as to which makefile
    is being read for a given DIRDEP.
    
    Reviewed by: stevek
---
 share/mk/dirdeps.mk | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/share/mk/dirdeps.mk b/share/mk/dirdeps.mk
index 2a9d2ac92102..80720a7ca225 100644
--- a/share/mk/dirdeps.mk
+++ b/share/mk/dirdeps.mk
@@ -1,4 +1,4 @@
-# $Id: dirdeps.mk,v 1.170 2024/06/24 02:21:00 sjg Exp $
+# $Id: dirdeps.mk,v 1.171 2024/09/30 21:21:25 sjg Exp $
 
 # SPDX-License-Identifier: BSD-2-Clause
 #
@@ -887,16 +887,13 @@ _m := ${.MAKE.DEPENDFILE_PREFERENCE:T:S;${TARGET_SPEC}$;${d:E};:C;${MACHINE}((,.
 .if !empty(_m)
 # M_dep_qual_fixes isn't geared to Makefile.depend
 _qm := ${_m:C;(\.depend)$;\1.${d:E};:${M_dep_qual_fixes.${d:E}:U${M_dep_qual_fixes}:ts:}}
-.if ${_debug_search}
-.info Looking for ${_qm}
-.endif
 # set this "just in case"
 # we can skip :tA since we computed the path above
 DEP_RELDIR := ${_m:H:S,^${SRCTOP}/,,}
 # and reset this
 DIRDEPS =
-.if ${_debug_reldir} && ${_qm} != ${_m}
-.info loading ${_m:S,${SRCTOP}/,,} for ${_dr}
+.if ${_debug_search} || ${_debug_reldir}
+.info Loading ${_m:S,${SRCTOP}/,,} for ${_dr}
 .endif
 .include <${_m}>
 .else