PROGS: Support INTERNALPROG.prog=yes to not install it.

MFC after:	3 days
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
bdrewery 2016-08-11 17:06:48 +00:00
parent 5bff0a8f50
commit cbfb8e93eb
2 changed files with 3 additions and 2 deletions

View File

@ -331,6 +331,7 @@ PROGS_CXX PROG and PROGS_CXX in one Makefile. To define
- DEBUG_FLAGS
- DPADD
- DPSRCS
- INTERNALPROG (no installation)
- LDADD
- LDFLAGS
- LIBADD

View File

@ -24,8 +24,8 @@ PROGS += ${PROGS_CXX}
# just one of many
PROG_OVERRIDE_VARS += BINDIR BINGRP BINOWN BINMODE DPSRCS MAN NO_WERROR \
PROGNAME SRCS STRIP WARNS
PROG_VARS += CFLAGS CXXFLAGS DEBUG_FLAGS DPADD LDADD LIBADD LINKS \
LDFLAGS MLINKS ${PROG_OVERRIDE_VARS}
PROG_VARS += CFLAGS CXXFLAGS DEBUG_FLAGS DPADD INTERNALPROG LDADD LIBADD \
LINKS LDFLAGS MLINKS ${PROG_OVERRIDE_VARS}
.for v in ${PROG_VARS:O:u}
.if empty(${PROG_OVERRIDE_VARS:M$v})
.if defined(${v}.${PROG})