Don't include bsd.prefs.mk more often than necessary.

This commit is contained in:
rillig 2006-10-01 14:23:20 +00:00
parent 8378d988f5
commit 857d3b1ac1

View file

@ -1,10 +1,8 @@
# $NetBSD: buildlink3.mk,v 1.25 2006/07/08 23:10:48 jlam Exp $
# $NetBSD: buildlink3.mk,v 1.26 2006/10/01 14:23:20 rillig Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
READLINE_BUILDLINK3_MK:= ${READLINE_BUILDLINK3_MK}+
.include "../../mk/bsd.prefs.mk"
.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+= readline
.endif
@ -29,6 +27,7 @@ BUILDLINK_TRANSFORM.readline+= \
# when testing for -lreadline. If BROKEN_READLINE_DETECTION is set to
# "yes", then automatically add the right one.
#
. include "../../mk/bsd.prefs.mk"
BROKEN_READLINE_DETECTION?= no
. if !empty(BROKEN_READLINE_DETECTION:M[yY][eE][sS])
BUILDLINK_RL_TERMLIB.Linux= curses