From: Lee Bieber Date: Fri, 15 Jan 2010 21:59:06 +0000 (-0800) Subject: add lcov and lcov-clean target X-Git-Tag: 0.40~83^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=05a7455d43e7303d4accb71eba006b8ed70afed9;p=m6w6%2Flibmemcached add lcov and lcov-clean target --- diff --git a/Makefile.am b/Makefile.am index d1632027..99687ed6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -54,3 +54,19 @@ merge-clean: find ./ | $(GREP) \~$$ | xargs rm -f bzr unknowns +lcov: lcov-clean check + @echo + @echo " ------------------------------------------------------" + @echo "Make sure ./configure was run with '--enable-coverage'" + @echo "------------------------------------------------------" + @echo + cd libmemcached && lcov --capture --directory . --base-directory .. --output-file lcov.out + genhtml -o lcov --function-coverage -t libmemcached libmemcached/lcov.out + +lcov-clean: clean + rm -rf lcov */lcov.out + find . -name '*.gcno' | xargs rm -f + find . -name '*.gcda' | xargs rm -f + + +