pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/pbulk mk/pbulk: Support SCAN_DEPENDS_SKIP.
details: https://anonhg.NetBSD.org/pkgsrc/rev/6c8c9e626e5f
branches: trunk
changeset: 377913:6c8c9e626e5f
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Mon Apr 25 10:59:23 2022 +0000
description:
mk/pbulk: Support SCAN_DEPENDS_SKIP.
This is a list of paths that will be excluded from SCAN_DEPENDS. Most users
will not need this, it's only really useful if you happen to use shared files
included by your mk.conf that may be touched even though there was no change
made to affect dependencies.
diffstat:
mk/pbulk/pbulk-index.mk | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r dbf1066099cf -r 6c8c9e626e5f mk/pbulk/pbulk-index.mk
--- a/mk/pbulk/pbulk-index.mk Mon Apr 25 10:51:50 2022 +0000
+++ b/mk/pbulk/pbulk-index.mk Mon Apr 25 10:59:23 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: pbulk-index.mk,v 1.25 2020/01/13 22:08:33 joerg Exp $
+# $NetBSD: pbulk-index.mk,v 1.26 2022/04/25 10:59:23 jperkin Exp $
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to the parallel bulk build
@@ -99,10 +99,16 @@
${_PBULK_MULTI_NEEDED:@._t.@;done@}
.endif
+_PBULK_SCAN_DEPENDS= ${.MAKE.MAKEFILES}
+
.if defined(PBULK_CACHE_DIRECTORY)
-_PBULK_SCAN_DEPENDS= ${.MAKE.MAKEFILES:N${PBULK_CACHE_DIRECTORY}/*}
-.else
-_PBULK_SCAN_DEPENDS= ${.MAKE.MAKEFILES}
+_PBULK_SCAN_DEPENDS:= ${_PBULK_SCAN_DEPENDS:N${PBULK_CACHE_DIRECTORY}/*}
+.endif
+
+.if defined(SCAN_DEPENDS_SKIP)
+. for _dir_ in ${SCAN_DEPENDS_SKIP}
+_PBULK_SCAN_DEPENDS:= ${_PBULK_SCAN_DEPENDS:N${_dir_}}
+. endfor
.endif
pbulk-index-item:
Home |
Main Index |
Thread Index |
Old Index