Use a pattern for GCDAS that actually works

This commit is contained in:
Enji Cooper 2017-10-01 05:25:55 +00:00
parent 25311a8015
commit 13bd47158e
2 changed files with 6 additions and 2 deletions

View File

@ -459,7 +459,9 @@ _libinstall:
.if !defined(LIBRARIES_ONLY)
.include <bsd.nls.mk>
.if defined(_COV_FLAG)
GCDAS= ${SRCS:M*.[c|cc|cpp|cxx|C]:R:S/$/.gcda/g}
_GCDA_SRCS= ${SRCS:M*.c} ${SRCS:M*.cc} ${SRCS:M*.cpp} ${SRCS:M*.cxx} ${SRCS:M*.C}
GCDAS= ${SRCS:R:S/$/.gcda/g}
.undef _GCDA_SRCS
.include <bsd.cov.mk>
.endif
.include <bsd.files.mk>

View File

@ -302,7 +302,9 @@ NLSNAME?= ${PROG}
.include <bsd.confs.mk>
.if defined(_COV_FLAG)
GCDAS= ${SRCS:M*.[c|cc|cpp|cxx|C]:R:S/$/.gcda/g}
_GCDA_SRCS= ${SRCS:M*.c} ${SRCS:M*.cc} ${SRCS:M*.cpp} ${SRCS:M*.cxx} ${SRCS:M*.C}
GCDAS= ${SRCS:R:S/$/.gcda/g}
.undef _GCDA_SRCS
.include <bsd.cov.mk>
.endif
.include <bsd.files.mk>