From 98fa60beec4b435060564ab3108d4fc572d85be9 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Tue, 29 May 2007 03:00:44 +0000 Subject: Test to see if a variable is defined before testing for its value. Keeps make happy on my older (netbsd-2) NetBSD box. --- mk/tools/replace.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index e4bdecabecc..a57397117cc 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.189 2007/05/27 02:11:13 jlam Exp $ +# $NetBSD: replace.mk,v 1.190 2007/05/29 03:00:44 dmcmahill Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -142,7 +142,8 @@ _TOOLS_DEPMETHOD.${_t_:C/:.*//}= DEPENDS .endfor .if !empty(_USE_TOOLS:Mbison-yacc) # bison-yacc > yacc -. if (${_TOOLS_DEPMETHOD.bison-yacc} == "BUILD_DEPENDS") && \ +. if defined(_TOOLS_DEPMETHOD.bison-yacc) && \ + (${_TOOLS_DEPMETHOD.bison-yacc} == "BUILD_DEPENDS") && \ defined(_TOOLS_DEPMETHOD.yacc) _TOOLS_DEPMETHOD.bison-yacc= ${_TOOLS_DEPMETHOD.yacc} . endif -- cgit v1.2.3