pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Add an alternative version of bsd.prefs.mk. make(1)...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/487f6a33845a
branches:  trunk
changeset: 521120:487f6a33845a
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Nov 05 14:28:38 2006 +0000

description:
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:

 mk/bsd.fast.prefs.mk |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 427b9158364b -r 487f6a33845a mk/bsd.fast.prefs.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mk/bsd.fast.prefs.mk      Sun Nov 05 14:28:38 2006 +0000
@@ -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



Home | Main Index | Thread Index | Old Index