]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Unbreak bsd.progs.mk with PROGS (but not PROGS_CXX) and when invoking the
authorngie <ngie@FreeBSD.org>
Fri, 30 Oct 2015 06:07:41 +0000 (06:07 +0000)
committerngie <ngie@FreeBSD.org>
Fri, 30 Oct 2015 06:07:41 +0000 (06:07 +0000)
"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

share/mk/bsd.progs.mk

index dce05c7d7bda7b77513c8fa401bbba749d5d4f52..c84e94b7c874a7f5155367cacba6a8cfe7678595 100644 (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