X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=Makefile.am;h=a548c9823be72f5bf9934a332cb0399c2444529e;hb=38d70dfdb082834652ff8823ad7f35067e720b1a;hp=4e4fb2e8c9fdf35f0d1a3d2a847f2c680d454317;hpb=1d7f999b7d38db3308a0533a83fea23987fb0178;p=m6w6%2Flibmemcached diff --git a/Makefile.am b/Makefile.am index 4e4fb2e8..a548c982 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,18 +1,97 @@ -INCLUDES = -SUBDIRS = docs libmemcached tests support clients -EXTRA_dist = README.FIRST +# vim:ft=automake -test: all - cd tests; make test; cd .. +ACLOCAL_AMFLAGS = -I m4 -I libtest/m4 -test-extended: all - cd tests; make test-extended; cd .. +# 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= -valgrind: - cd tests; make valgrind; cd .. +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 -rpm: all dist - cp libmemcached-$(VERSION).tar.gz /home/brian/rpmbuild/SOURCES/ - rpmbuild -ba support/libmemcached.spec - cp /home/brian/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm . - cp /home/brian/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm . +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 + +if HAVE_LIBEVENT +include memcached/include.am +libtest_libtest_la_DEPENDENCIES+= memcached/memcached +endif + +docs: html man + +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) \.orig | xargs rm -f + @find ./ | $(GREP) \.rej | xargs rm -f + @find ./ | $(GREP) \.rpm | xargs rm -f + @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