it would be nice if we could choose not to build docs, e.g.
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,8 @@
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = src doc
+SUBDIRS = src
+if HAVE_DOCS
+SUBDIRS += doc
+endif
CLEANFILES = *~
EXTRA_DIST = examples/blink/blink.c \
examples/input/input.c \
--- a/
configure.ac+++ b/
configure.ac@@ -11,10 +11,21 @@
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE()
AC_CHECK_LIB([rt], [clock_gettime])
-AC_CHECK_PROGS([DOXYGEN], [doxygen])
-if test -z "$DOXYGEN";
- then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
+
+AC_MSG_CHECKING([for docs])
+AC_ARG_WITH([docs],
+ [AS_HELP_STRING([--with-docs], [generate doxygen docs (default yes)])],
+ [with_docs=$withval],
+ [with_docs=yes])
+AC_MSG_RESULT([$with_docs])
+AM_CONDITIONAL([HAVE_DOCS], [test "x$with_docs" = "xyes"])
+if test "x$with_docs" = "xyes" ; then
+ AC_CHECK_PROGS([DOXYGEN], [doxygen])
+ if test -z "$DOXYGEN";
+ then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
+ fi
fi
+
AC_PROG_RANLIB
AC_PROG_CC
AC_CONFIG_MACRO_DIR([m4])
--