pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Include bsd.makevars.mk in bsd.prefs.mk instead of ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ee7e4fecfa0a
branches: trunk
changeset: 495004:ee7e4fecfa0a
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Jun 01 17:05:19 2005 +0000
description:
Include bsd.makevars.mk in bsd.prefs.mk instead of bsd.pkg.mk. This
allows the saved make variables to be re-set whenever bsd.prefs.mk is
included, and is a shortcut for the common case where a Makefile
includes both.
diffstat:
mk/bsd.makevars.mk | 13 ++++++++-----
mk/bsd.pkg.mk | 3 +--
mk/bsd.prefs.mk | 5 ++++-
3 files changed, 13 insertions(+), 8 deletions(-)
diffs (64 lines):
diff -r b24d62f752f7 -r ee7e4fecfa0a mk/bsd.makevars.mk
--- a/mk/bsd.makevars.mk Wed Jun 01 16:41:26 2005 +0000
+++ b/mk/bsd.makevars.mk Wed Jun 01 17:05:19 2005 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: bsd.makevars.mk,v 1.1 2005/06/01 03:04:16 jlam Exp $
+# $NetBSD: bsd.makevars.mk,v 1.2 2005/06/01 17:05:19 jlam Exp $
#
-# This Makefile fragment is included by other Makefiles to set all of
+# This Makefile fragment is included by bsd.prefs.mk to set all of
# the variables saved through MAKEVARS. Typical usage is:
#
-# .include "../../mk/bsd.makevars.mk"
+# .include "../../mk/bsd.prefs.mk"
+#
# .if !define(EXPENSIVE_VAR)
# EXPENSIVE_VAR!= ( ... an expensive computation ... )
# .endif
@@ -26,8 +27,10 @@
.endif
MAKEVARS+= _REV_ALL_PHASES
-# Try including the .makevars.mk.* files in reverse order so that the
-# latest file is included and no more.
+# Try including the *.makevars.mk files in reverse order so that the
+# latest file is included and no more. We check for _MAKEVARS_MK since
+# all of the *.makevars.mk files define this symbol at the top of the
+# file.
#
.for _phase_ in ${_REV_ALL_PHASES}
_MAKEVARS_MK.${_phase_}= ${WRKDIR}/.${_phase_}_makevars.mk
diff -r b24d62f752f7 -r ee7e4fecfa0a mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Wed Jun 01 16:41:26 2005 +0000
+++ b/mk/bsd.pkg.mk Wed Jun 01 17:05:19 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1682 2005/06/01 03:04:16 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1683 2005/06/01 17:05:19 jlam Exp $
#
# This file is in the public domain.
#
@@ -20,7 +20,6 @@
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.hacks.mk"
-.include "../../mk/bsd.makevars.mk"
# This has to come first to avoid showing all BUILD_DEFS added by this
# Makefile, which are usually not customizable.
diff -r b24d62f752f7 -r ee7e4fecfa0a mk/bsd.prefs.mk
--- a/mk/bsd.prefs.mk Wed Jun 01 16:41:26 2005 +0000
+++ b/mk/bsd.prefs.mk Wed Jun 01 17:05:19 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.193 2005/05/22 19:11:12 jlam Exp $
+# $NetBSD: bsd.prefs.mk,v 1.194 2005/06/01 17:05:19 jlam Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -566,4 +566,7 @@
# Wrapper framework definitions
.include "${PKGSRCDIR}/mk/wrapper/wrapper-defs.mk"
+# Make variable definitions cache
+.include "${PKGSRCDIR}/mk/bsd.makevars.mk"
+
.endif # BSD_PKG_MK
Home |
Main Index |
Thread Index |
Old Index