aboutsummaryrefslogtreecommitdiff
path: root/share/mk/meta.autodep.mk
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2023-09-18 18:40:07 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2023-09-18 18:40:07 +0000
commit40b9b2995f0f4b09cbdc9aa88f1f21f05bd1cc88 (patch)
tree87eed253e662f4fd98a83eee48b5c850fd36148d /share/mk/meta.autodep.mk
parentb57df6fbcc484f1941bf306cb60a3adaf538df69 (diff)
downloadsrc-40b9b2995f0f4b09cbdc9aa88f1f21f05bd1cc88.tar.gz
src-40b9b2995f0f4b09cbdc9aa88f1f21f05bd1cc88.zip
Diffstat (limited to 'share/mk/meta.autodep.mk')
-rw-r--r--share/mk/meta.autodep.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/share/mk/meta.autodep.mk b/share/mk/meta.autodep.mk
index cd08ac3b3520..6785d2ebf874 100644
--- a/share/mk/meta.autodep.mk
+++ b/share/mk/meta.autodep.mk
@@ -1,4 +1,4 @@
-# $Id: meta.autodep.mk,v 1.56 2022/09/09 17:44:29 sjg Exp $
+# $Id: meta.autodep.mk,v 1.59 2023/08/19 17:35:32 sjg Exp $
#
# @(#) Copyright (c) 2010, Simon J. Gerraty
@@ -139,6 +139,10 @@ FORCE_DPADD += ${_nonlibs:@x@${DPADD:M*/$x}@}
.END: gendirdeps
.endif
+.if ${LOCAL_DEPENDS_GUARD:U} == "no"
+.depend:
+.endif
+
# if we don't have OBJS, then .depend isn't useful
.if !target(.depend) && (!empty(OBJS) || ${.ALLTARGETS:M*.o} != "")
# some makefiles and/or targets contain
@@ -206,7 +210,8 @@ _depend =
.endif
.if ${UPDATE_DEPENDFILE} == "yes"
-gendirdeps: ${_DEPENDFILE}
+gendirdeps: beforegendirdeps .WAIT ${_DEPENDFILE}
+beforegendirdeps:
.endif
.if !target(${_DEPENDFILE})
@@ -300,7 +305,7 @@ ${_DEPENDFILE}: .PRECIOUS
CLEANFILES += *.meta filemon.* *.db
# these make it easy to gather some stats
-now_utc = ${%s:L:gmtime}
+now_utc = ${%s:L:localtime}
start_utc := ${now_utc}
meta_stats= meta=${empty(.MAKE.META.FILES):?0:${.MAKE.META.FILES:[#]}} \