Unbreak bsd.progs.mk with PROGS (but not PROGS_CXX) and when invoking the

"one of many" targets, e.g. `make hello_world`, where hello_world is a C
program

Tested with: PROGS and PROGS_CXX
MFC after: 1 week
X-MFC with: r289289
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2015-10-30 06:07:41 +00:00
parent 78d2334f0d
commit d04fda6cc4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290181

View File

@ -31,7 +31,7 @@ UPDATE_DEPENDFILE_PROG = ${PROGS:[1]}
# They may have asked us to build just one
.for t in ${PROGS}
.if make($t)
.if ${PROGS_CXX:M${t}}
.if ${PROGS_CXX:U:M${t}}
PROG_CXX ?= $t
.endif
PROG ?= $t