diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2007-05-29 03:00:44 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2007-05-29 03:00:44 +0000 |
commit | 98fa60beec4b435060564ab3108d4fc572d85be9 (patch) | |
tree | 6ac76a5dc46f52f2ff517b2ba508b9de5d5e345b /mk/tools | |
parent | 19bbb1e421866d1d844348b316134992c1b6e403 (diff) | |
download | pkgsrc-98fa60beec4b435060564ab3108d4fc572d85be9.tar.gz |
Test to see if a variable is defined before testing for its value. Keeps
make happy on my older (netbsd-2) NetBSD box.
Diffstat (limited to 'mk/tools')
-rw-r--r-- | mk/tools/replace.mk | 5 |
1 files 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 |