add lcov and lcov-clean target
authorLee Bieber <lbieber@lee-biebers-macbook-pro.local>
Fri, 15 Jan 2010 21:59:06 +0000 (13:59 -0800)
committerLee Bieber <lbieber@lee-biebers-macbook-pro.local>
Fri, 15 Jan 2010 21:59:06 +0000 (13:59 -0800)
Makefile.am

index d163202714941cb07d46fe389fe06246813091d4..99687ed6e7a84dd2cf387e63f19496fb643592e8 100644 (file)
@@ -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
+
+
+