summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjoerg <joerg>2006-11-05 14:28:38 +0000
committerjoerg <joerg>2006-11-05 14:28:38 +0000
commit7a407675561b8c714b46a3fb8d4c4712097d5611 (patch)
tree362c98503373b17d73923245f43626777e214928 /mk
parent3596d070caa70849b1f3afa61e5a52ed513c2d64 (diff)
downloadpkgsrc-7a407675561b8c714b46a3fb8d4c4712097d5611.tar.gz
Add an alternative version of bsd.prefs.mk. make(1) processing of
the fullly conditionalised bsd.prefs.mk still needs a considerable amount of time and moving the include guard out kills most of that. Preliminary tests with renaming bsd.prefs.mk and using the same logic to point to the real files show 5%-10% reduced run time for "make show-options" in x11/kdebase3 and no measurable regression in simpler places. This versions allows incremental conversion of the use in buildlink3.mk. Some care should be used in mk/ itself, as e.g. bsd.pkg.mk is included from first level hierachies as well.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.fast.prefs.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/mk/bsd.fast.prefs.mk b/mk/bsd.fast.prefs.mk
new file mode 100644
index 00000000000..6da9f9b2189
--- /dev/null
+++ b/mk/bsd.fast.prefs.mk
@@ -0,0 +1,8 @@
+# $NetBSD: bsd.fast.prefs.mk,v 1.1 2006/11/05 14:28:38 joerg Exp $
+#
+# Conditionally include mk/bsd.prefs.mk, if it wasn't processed already.
+#
+
+.if !defined(BSD_PKG_MK)
+.include "../../mk/bsd.prefs.mk"
+.endif