Makefile: Add cover_db_html target
Add a target to generate a detailed HTML report for the entire Git codebase using Devel::Cover's cover(1) tool. Output it in cover_db_html instead of the default cover_db, so that it isn't mixed up with our raw report files. The target depends on the coverage-report-cover-db target, it may be run redundantly if it was previously run. But the HTML output won't be affected by running gcov2perl twice, so I didn't try to avoid that small redundancy. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Jul 25, 2010 at 19:52 UTC
df07acfe0bf000e0852c31e65d915faf3d1b43f7
2 files changed
+5
.gitignore
+1
@@ -186,6 +186,7 @@
186
*.gcov
187
/coverage-untested-functions
188
/cover_db/
189
+/cover_db_html/
190
*+
191
/config.mak
192
/autom4te.cache
Makefile
+4
@@ -2299,6 +2299,7 @@ coverage-clean:
2299
$(RM) $(addsuffix *.gcno,$(object_dirs))
2300
$(RM) coverage-untested-functions
2301
$(RM) -r cover_db/
2302
+ $(RM) -r cover_db_html/
2303
2304
COVERAGE_CFLAGS = $(CFLAGS) -O0 -ftest-coverage -fprofile-arcs
2305
COVERAGE_LDFLAGS = $(CFLAGS) -O0 -lgcov
@@ -2321,3 +2322,6 @@ coverage-untested-functions: coverage-report
2322
2323
cover_db: coverage-report
2324
gcov2perl -db cover_db *.gcov
2325
+
2326
+cover_db_html: cover_db
2327
+ cover -report html -outputdir cover_db_html cover_db