Ability to use non-standard FreeBSD gcov tool

This commit is contained in:
NHOrus 2017-07-02 09:49:18 +03:00 committed by Eric S. Raymond
parent 634cd0f17f
commit e65132a108

View file

@ -4,6 +4,7 @@
# scripts from parent directory. Note that using $PWD seems to fail # scripts from parent directory. Note that using $PWD seems to fail
# here under Gitlab's CI environment. # here under Gitlab's CI environment.
PATH := $(realpath ..):$(realpath .):${PATH} PATH := $(realpath ..):$(realpath .):${PATH}
GCOV?=gcov
# Defeat annoying behavior under Mac OS X - builtin echo doesn't do -n # Defeat annoying behavior under Mac OS X - builtin echo doesn't do -n
ECHO := /bin/echo ECHO := /bin/echo
@ -20,7 +21,7 @@ check: savecheck regress
@-advent -l /dev/null <pitfall.log >/dev/null @-advent -l /dev/null <pitfall.log >/dev/null
coverage: check coverage: check
lcov -t "advent" -o ../advent.info -c -d .. lcov -t "advent" -o ../advent.info -c -d .. --gcov-tool=$(GCOV)
genhtml -o ../coverage/ ../advent.info genhtml -o ../coverage/ ../advent.info
.SUFFIXES: .chk .SUFFIXES: .chk