Fix for interface issues (Bug 571909 <571909@bugs.launchpad.net>)
[m6w6/libmemcached] / Makefile.am
index d163202714941cb07d46fe389fe06246813091d4..d2acebaa4658258582dd8e4b712c90d91b5223f1 100644 (file)
@@ -14,7 +14,21 @@ include_HEADERS =
 nobase_include_HEADERS =
 EXTRA_HEADERS =
 BUILT_SOURCES=
-EXTRA_DIST = README.FIRST
+EXTRA_DIST= \
+           ${srcdir}/m4/pandora_*.m4 \
+           .quickly \
+           README.FIRST \
+           config/autorun.sh \
+           config/pandora-plugin \
+           config/uncrustify.cfg \
+           m4/ac_cxx_header_stdcxx_98.m4 \
+           m4/acx_pthread.m4  \
+           m4/gettext.m4 \
+           m4/iconv.m4 \
+           m4/pkg.m4 \
+           m4/po.m4 \
+           m4/progtest.m4
+
 
 SUBDIRS = docs
 
@@ -49,8 +63,28 @@ generic:
 rpm: all dist generic fedora
 
 merge-clean:
+       find ./ | $(GREP) \.gcda | xargs rm -f
+       find ./ | $(GREP) \.gcno | xargs rm -f
+       find ./ | $(GREP) \.gz | xargs rm -f
        find ./ | $(GREP) \.orig | xargs rm -f
        find ./ | $(GREP) \.rej | xargs rm -f
+       find ./ | $(GREP) \.rpm | xargs rm -f
        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
+
+
+