From 9a5fda02885bb74ddc66230a79812c5fbe08e856 Mon Sep 17 00:00:00 2001 From: tnn Date: Thu, 7 Feb 2008 16:53:14 +0000 Subject: Oops, make sure the variable is defined before testing it's value. --- mk/tools/replace.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index da2172fd2d1..46e2f47a995 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.205 2008/02/07 12:10:36 tnn Exp $ +# $NetBSD: replace.mk,v 1.206 2008/02/07 16:53:14 tnn Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -897,7 +897,8 @@ _TOOLS.groff= groff nroff soelim tbl MAKEFLAGS+= TOOLS_IGNORE.${_t_}= . elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS]) || \ !empty(_TOOLS_USE_PKGSRC.groff:M[yY][eE][sS]) -. if !empty(_TOOLS_USE_PKGSRC.groff:M[yY][eE][sS]) +. if defined(_TOOLS_USE_PKGSRC.groff) && \ + !empty(_TOOLS_USE_PKGSRC.groff:M[yY][eE][sS]) _TOOLS_USE_PKGSRC.${_t_}= yes . endif TOOLS_DEPENDS.${_t_}?= groff>=1.19.2nb3:../../textproc/groff -- cgit v1.2.3