Index: projects/runtime-coverage/share/mk/Makefile =================================================================== --- projects/runtime-coverage/share/mk/Makefile (revision 321764) +++ projects/runtime-coverage/share/mk/Makefile (revision 321765) @@ -1,80 +1,84 @@ # $FreeBSD$ # @(#)Makefile 8.1 (Berkeley) 6/8/93 # Only parse this if executing make in this directory, not in other places # in src that lack a Makefile, such as sys/dev/*. Otherwise the MAKESYSPATH # will read this Makefile since it auto includes it into -I. .if ${.CURDIR} == ${.PARSEDIR} # Avoid creating a Makefile.depend here as it would get included anywhere # in the build, similar to the problem above. It would cause dirdeps.mk # to be included more times than desired. UPDATE_DEPENDFILE= no .include FILES= \ auto.obj.mk \ bsd.README \ bsd.arch.inc.mk \ bsd.clang-analyze.mk \ bsd.compiler.mk \ bsd.confs.mk \ bsd.cpu.mk \ bsd.crunchgen.mk \ bsd.dep.mk \ bsd.doc.mk \ bsd.dtb.mk \ bsd.endian.mk \ bsd.files.mk \ bsd.incs.mk \ bsd.info.mk \ bsd.init.mk \ bsd.kmod.mk \ bsd.lib.mk \ bsd.libnames.mk \ bsd.linker.mk \ bsd.links.mk \ bsd.man.mk \ bsd.mkopt.mk \ bsd.nls.mk \ bsd.obj.mk \ bsd.opts.mk \ bsd.own.mk \ bsd.port.mk \ bsd.port.options.mk \ bsd.port.post.mk \ bsd.port.pre.mk \ bsd.port.subdir.mk \ bsd.prog.mk \ bsd.progs.mk \ bsd.snmpmod.mk \ bsd.subdir.mk \ bsd.suffixes-posix.mk \ bsd.suffixes.mk \ bsd.symver.mk \ bsd.sys.mk \ bsd.test.mk \ dirdeps.mk \ gendirdeps.mk \ install-new.mk \ meta.autodep.mk \ meta.stage.mk \ meta.subdir.mk \ meta.sys.mk \ stage-install.sh \ sys.mk \ sys.dependfile.mk \ version_gen.awk FILESDIR= ${BINDIR}/mk +.if ${MK_COVERAGE} != "no" +FILES+= bsd.cov.mk +.endif + .if ${MK_TESTS} != "no" FILES+= atf.test.mk FILES+= plain.test.mk FILES+= suite.test.mk FILES+= tap.test.mk .endif .include .endif # CURDIR == PARSEDIR Index: projects/runtime-coverage/share/mk/bsd.cov.mk =================================================================== --- projects/runtime-coverage/share/mk/bsd.cov.mk (nonexistent) +++ projects/runtime-coverage/share/mk/bsd.cov.mk (revision 321765) @@ -0,0 +1,21 @@ +# $FreeBSD$ + +.include + +FILESGROUPS?= FILES +FILESGROUPS+= GCNOS +_GCNO_FILES= ${OBJS:.o=.gcno} +CLEANFILES+= ${_GCNO_FILES} +GCNOS+= ${_GCNO_FILES} + +.for _gcno_file in ${_GCNO_FILES} +_gcno_dir= ${COVERAGEDIR}${_gcno_file:tA:H} +_gcno_fulldir= ${DESTDIR}${_gcno_dir} +GCNOSDIR_${_gcno_file:T}= ${_gcno_dir} + +.if !target(${_gcno_fulldir}) +beforeinstall: ${_gcno_fulldir} +${_gcno_fulldir}: + ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},coverage} -d ${.TARGET} +.endif +.endfor Property changes on: projects/runtime-coverage/share/mk/bsd.cov.mk ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property