X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=Makefile.am;h=79b4cc7ae70ea59b7b77c80ed1054826f46ced13;hb=5821867f93ad4e4e38909fb854d84c285782241b;hp=da5f16e2c96264468760613ca36f4ae6f5f98033;hpb=ff2f828a531d23ee087940fed20e8798fdf2c204;p=awesomized%2Flibmemcached diff --git a/Makefile.am b/Makefile.am index da5f16e2..79b4cc7a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,29 +4,48 @@ ACLOCAL_AMFLAGS = -I m4 SUFFIXES = PHONY = TESTS = -CLEANFILES = +CLEANFILES = +DISTCLEANFILES = bin_PROGRAMS = noinst_HEADERS = lib_LTLIBRARIES = +man_MANS = noinst_LTLIBRARIES = noinst_PROGRAMS = -pkginclude_HEADERS = -nobase_pkginclude_HEADERS = +include_HEADERS = +nobase_include_HEADERS = +check_PROGRAMS = EXTRA_HEADERS = BUILT_SOURCES= -EXTRA_DIST = README.FIRST +EXTRA_DIST= \ + ${srcdir}/m4/pandora_*.m4 \ + .quickly \ + README.FIRST \ + README.win32 \ + 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 libhashkit - -test-docs: - (cd docs && make test-docs) +include libtest/include.am include libmemcached/include.am include clients/include.am +include libhashkit/include.am include tests/include.am include example/include.am include support/include.am +include poll/include.am +include win32/include.am +include docs/include.am -check-local: test-no-outputdiff +TESTS += ${check_PROGRAMS} +EXTRA_DIST+= ${man_MANS} fedora: @@ -48,8 +67,32 @@ 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 +clean-local: + -rm -rf docs/_build docs/doctrees + +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 + +CLEANFILES+= config/top.h + +