X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=Makefile.am;h=7bbac703b0b9eefa9d51420c4f13b19a281a2f0e;hb=d5c34fa54897336e3c92789d1abcceca8c5b213b;hp=da5f16e2c96264468760613ca36f4ae6f5f98033;hpb=ff2f828a531d23ee087940fed20e8798fdf2c204;p=awesomized%2Flibmemcached diff --git a/Makefile.am b/Makefile.am index da5f16e2..7bbac703 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,24 +4,25 @@ ACLOCAL_AMFLAGS = -I m4 SUFFIXES = PHONY = TESTS = -CLEANFILES = +CLEANFILES = bin_PROGRAMS = noinst_HEADERS = lib_LTLIBRARIES = noinst_LTLIBRARIES = noinst_PROGRAMS = -pkginclude_HEADERS = -nobase_pkginclude_HEADERS = +include_HEADERS = +nobase_include_HEADERS = EXTRA_HEADERS = BUILT_SOURCES= EXTRA_DIST = README.FIRST -SUBDIRS = docs libhashkit +SUBDIRS = docs test-docs: - (cd docs && make test-docs) + (cd docs && $(MAKE) test-docs) include libmemcached/include.am include clients/include.am +include libhashkit/include.am include tests/include.am include example/include.am include support/include.am @@ -48,8 +49,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 + + +