X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=Makefile.am;h=c57267724b7b35e7a24e22c8205c5d911c0671a2;hb=e8ea3ad4ba8e2ca483f2c265db0524e1996f53e1;hp=868ea873977101976fae4ec81abf5a63e8a87f9a;hpb=1fe1c459a115bf70c33e601660b45ab33f4558fa;p=awesomized%2Flibmemcached diff --git a/Makefile.am b/Makefile.am index 868ea873..c5726772 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,21 +1,39 @@ ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = docs libmemcached libhashkit support clients tests example -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= \ + ${srcdir}/m4/pandora_*.m4 \ + README.FIRST \ + config/autorun.sh \ + m4/pkg.m4 -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 @@ -36,10 +54,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 -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 + + +