Need to also test for defined(${v}_${PROG})

This commit is contained in:
Simon J. Gerraty 2013-11-19 00:34:59 +00:00
parent 7dfb7dad8b
commit 3bd40bb188
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258330

View File

@ -44,7 +44,7 @@ PROG ?= $t
# just one of many
PROG_VARS += BINDIR CFLAGS CPPFLAGS CXXFLAGS DPADD DPLIBS LDADD MAN SRCS
.for v in ${PROG_VARS:O:u}
.if defined(${v}.${PROG})
.if defined(${v}.${PROG}) || defined(${v}_${PROG})
$v += ${${v}_${PROG}:U${${v}.${PROG}}}
.else
$v ?=