summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2008-02-07 16:53:14 +0000
committertnn <tnn@pkgsrc.org>2008-02-07 16:53:14 +0000
commit9a5fda02885bb74ddc66230a79812c5fbe08e856 (patch)
treee424209a07bd297d010afebb9f8981d2370901c0 /mk
parent1984db0948dd60e681858c2c107937b8effabd07 (diff)
downloadpkgsrc-9a5fda02885bb74ddc66230a79812c5fbe08e856.tar.gz
Oops, make sure the variable is defined before testing it's value.
Diffstat (limited to 'mk')
-rw-r--r--mk/tools/replace.mk5
1 files changed, 3 insertions, 2 deletions
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