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

This commit is contained in:
sjg 2013-11-19 00:34:59 +00:00
parent 5e21fc1880
commit fd941d5a46

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 ?=