X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=Makefile.am;h=99687ed6e7a84dd2cf387e63f19496fb643592e8;hb=54915965dc90f7aeceda9e9b1370c77eb8b1631f;hp=f807c697fd3730b07457f6b1f5785a2bdbb66ec7;hpb=dec0636927f5d0ae4cf06ad2710d022990419879;p=awesomized%2Flibmemcached diff --git a/Makefile.am b/Makefile.am index f807c697..99687ed6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,21 +1,34 @@ ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = docs libmemcached support clients tests example libhashkit -EXTRA_dist = README.FIRST +# includes append to these: +SUFFIXES = +PHONY = +TESTS = +CLEANFILES = +bin_PROGRAMS = +noinst_HEADERS = +lib_LTLIBRARIES = +noinst_LTLIBRARIES = +noinst_PROGRAMS = +include_HEADERS = +nobase_include_HEADERS = +EXTRA_HEADERS = +BUILT_SOURCES= +EXTRA_DIST = README.FIRST -check-local: test-no-outputdiff - -test: all - @(cd tests; ${MAKE} test) +SUBDIRS = docs -test-extended: all - @(cd tests; ${MAKE} test-extended) +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 -valgrind: all - @(cd tests; ${MAKE} valgrind) +check-local: test-no-outputdiff -test-no-outputdiff: - @(cd tests; ${MAKE} test-no-outputdiff) fedora: rm -f ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm @@ -41,5 +54,19 @@ merge-clean: find ./ | $(GREP) \~$$ | xargs rm -f bzr unknowns -hudson-valgrind: all - @(cd tests; ${MAKE} hudson-valgrind) +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 + + +