From 05a7455d43e7303d4accb71eba006b8ed70afed9 Mon Sep 17 00:00:00 2001 From: Lee Bieber Date: Fri, 15 Jan 2010 13:59:06 -0800 Subject: [PATCH] add lcov and lcov-clean target --- Makefile.am | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 + + + -- 2.30.2