X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=Makefile.am;h=0728e01d21d6159c080927968ba8e984adb1fd57;hb=9471f55664fe4cf5a631739046c7177e0823a47d;hp=09db5e9445f931a76bad70f497a04fcdc2875d2b;hpb=8fd8f655540e3d6aa0b0a3eb0f4f7df1be2e6542;p=awesomized%2Flibmemcached diff --git a/Makefile.am b/Makefile.am index 09db5e94..0728e01d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,27 +4,46 @@ 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 = +check_PROGRAMS = 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 libhashkit +SUBDIRS = docs + +test-docs: + (cd docs && $(MAKE) test-docs) include libmemcached/include.am include clients/include.am +include libhashkit/include.am +include unittests/include.am include tests/include.am include example/include.am include support/include.am -check-local: test-no-outputdiff +TESTS += ${check_PROGRAMS} fedora: @@ -46,8 +65,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 + + +