X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=Makefile.am;h=b0babecaacf8e0be4246944fa29df188b30d7254;hb=12911320d89ae182f96305d11830f6168bcdd8e6;hp=6b05f81f7e880e7c4cb9800c00c65e6308fe31a5;hpb=aef60cba06c79c42f79532923aa49675386c552f;p=awesomized%2Flibmemcached diff --git a/Makefile.am b/Makefile.am index 6b05f81f..b0babeca 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,13 +1,93 @@ -INCLUDES = include -SUBDIRS = docs include lib src tests - -test: all - cd tests; make test; cd .. - -ltest: all - ./tests/testapp output.txt - -valgrind: - cd tests; make valgrind; cd .. - - +# vim:ft=automake + +ACLOCAL_AMFLAGS = -I m4 -I libtest/m4 + +# includes append to these: +SUFFIXES = +.PHONY = +TESTS = +CLEANFILES = +DISTCLEANFILES = +bin_PROGRAMS = +noinst_HEADERS = +lib_LTLIBRARIES = +man_MANS = +noinst_LTLIBRARIES = +noinst_PROGRAMS = +include_HEADERS = +nobase_include_HEADERS = +check_PROGRAMS = +EXTRA_HEADERS = +BUILT_SOURCES= +EXTRA_DIST= + +EXTRA_DIST+= ${srcdir}/m4/pandora_*.m4 +EXTRA_DIST+= .quickly +EXTRA_DIST+= README.FIRST +EXTRA_DIST+= README.win32 +EXTRA_DIST+= config/autorun.sh +EXTRA_DIST+= config/pandora-plugin +EXTRA_DIST+= config/uncrustify.cfg + +include libtest/include.am + +include libhashkit-1.0/include.am +include libmemcached-1.0/include.am +include libmemcachedprotocol-0.0/include.am +include libmemcachedutil-1.0/include.am + +include clients/include.am +include docs/include.am +include example/include.am +include libhashkit/include.am +include libmemcached/include.am +include libmemcachedutil/include.am +include libmemcachedprotocol/include.am +include libmemcachedinternal/include.am +include libmemcachedinternal/util/include.am +include poll/include.am +include rpm.am +include support/include.am +include tests/include.am +include util/include.am +include win32/include.am + +include m4/include.am + +TESTS += ${check_PROGRAMS} + +EXTRA_DIST+= ${man_MANS} + +merge-clean: + @find ./ | $(GREP) \.gcda | xargs rm -f + @find ./ | $(GREP) \.gcno | xargs rm -f + @find ./ | $(GREP) \.gz | xargs rm -f + @find ./ | $(GREP) \.moved | xargs rm -r -f + @find ./ | $(GREP) \\.orig | xargs rm -f + @find ./ | $(GREP) \.rej | xargs rm -f + @rm -f *\.rpm + @find ./ | $(GREP) \.THIS | xargs rm -f + @find ./ | $(GREP) \.OTHER | xargs rm -f + @find ./ | $(GREP) \.BASE | xargs rm -f + @find ./ | $(GREP) \~$$ | xargs rm -f + @echo "Files that need to be either removed or checked in:" + @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 + +DISTCLEANFILES+= config/top.h