pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Make BUILDLINK_TARGETS an add-on variabl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5cca0429cc56
branches:  trunk
changeset: 461670:5cca0429cc56
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Sep 19 07:39:01 2003 +0000

description:
Make BUILDLINK_TARGETS an add-on variable to _BLNK_TARGETS so that the
buildlink-<pkg> targets created by this file are executed before any
buildlink3.mk-provided targets.

diffstat:

 mk/buildlink3/bsd.buildlink3.mk |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 5e539e680471 -r 5cca0429cc56 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Fri Sep 19 05:18:35 2003 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Fri Sep 19 07:39:01 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.13 2003/09/14 01:46:47 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.14 2003/09/19 07:39:01 jlam Exp $
 #
 # An example package buildlink3.mk file:
 #
@@ -343,7 +343,7 @@
 .for _pkg_ in ${BUILDLINK_PACKAGES}
 _BLNK_COOKIE.${_pkg_}=         ${BUILDLINK_DIR}/.buildlink_${_pkg_}_done
 
-BUILDLINK_TARGETS+=            buildlink-${_pkg_}
+_BLNK_TARGETS+=                        buildlink-${_pkg_}
 _BLNK_TARGETS.${_pkg_}=                buildlink-${_pkg_}-message
 _BLNK_TARGETS.${_pkg_}+=       ${_BLNK_COOKIE.${_pkg_}}
 _BLNK_TARGETS.${_pkg_}+=       buildlink-${_pkg_}-cookie
@@ -463,11 +463,16 @@
                { print }                                               \
        '
 
-# Add each of the targets in BUILDLINK_TARGETS as a prerequisite for the
+# Include any BUILDLINK_TARGETS provided in buildlink3.mk files in
+# _BLNK_TARGETS.
+#
+_BLNK_TARGETS+=        ${BUILDLINK_TARGETS}
+
+# Add each of the targets in _BLNK_TARGETS as a prerequisite for the
 # do-buildlink target.  This ensures that all the buildlink magic happens
 # before any configure or build commands are called.
 #
-.for _target_ in ${BUILDLINK_TARGETS}
+.for _target_ in ${_BLNK_TARGETS}
 do-buildlink: ${_target_}
 .endfor
 



Home | Main Index | Thread Index | Old Index