noinst_PROGRAMS =
include_HEADERS =
nobase_include_HEADERS =
-check_PROGRAMS =
+check_PROGRAMS =
EXTRA_HEADERS =
BUILT_SOURCES=
EXTRA_DIST= \
m4/po.m4 \
m4/progtest.m4
-
+TEST_DOCS=
+if BUILD_DOCS
SUBDIRS = docs
+TEST_DOCS+=test-docs
+endif
test-docs:
(cd docs && $(MAKE) test-docs)
genhtml -o lcov --function-coverage -t libmemcached libmemcached/lcov.out
lcov-clean: clean
- rm -rf lcov */lcov.out
+ rm -rf lcov */lcov.out
find . -name '*.gcno' | xargs rm -f
find . -name '*.gcda' | xargs rm -f
ENABLE_UTILLIB
SETSOCKOPT_SANITY
ENABLE_HSIEH_HASH
-REQUIRE_POD2MAN
-REQUIRE_PODCHECKER
PROTOCOL_BINARY_TEST
WITH_MEMCACHED
ENABLE_DEPRECATED
[1],
[Define to true if you want to use functions from atomic.h])])])
+AC_ARG_WITH([docs],
+ [AS_HELP_STRING([--with-docs],
+ [Generate documentation (yes|no) @<:@default=yes@:>@])],
+ [with_docs=$withval],
+ [with_docs=yes])
+
+AS_IF([test "$with_docs" = "yes"],
+ [
+ REQUIRE_POD2MAN
+ REQUIRE_PODCHECKER
+ ])
+AM_CONDITIONAL(BUILD_DOCS, test "$with_docs" = "yes")
+
+
AC_CONFIG_FILES([
Makefile
docs/Makefile
;;
esac
+AS_IF(test "$with_docs" = "no",
+ [
+ echo "*****"
+ echo "*"
+ echo "* WARNING: You are not generating any documentation."
+ echo "* Please don't ship libmemcached to an end user"
+ echo "* without documentation..."
+ echo "*"
+ echo "*****"
+ ])
test: check
-check-local: test-docs test-mem test-hash memcapable
+check-local: $(TEST_DOCS) test-mem test-hash memcapable
echo "Tests completed"
test-x: check-local test-plus test-memcat test-memcp test-memrm test-memerror test-memdump test-memflush test-memstat