Commit 1be4e490 authored by Ondřej Surý's avatar Ondřej Surý

Conditionally build doc/ dir

parent 82739330
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src samples @DOC@
SUBDIRS = src samples doc
......@@ -57,7 +57,7 @@ XMLTO=
AS_IF([test "x$with_documentation" != "xno"],
[AC_CHECK_PROG([XMLTO], [xmlto], [xmlto],
[AC_MSG_ERROR([xmlto needed for building the documentation])])
AC_SUBST([DOC], [doc])
AM_CONDITIONAL([build_documentation], [test "x$XMLTO" != "x"])
])
AC_PROG_YACC
......
......@@ -10,8 +10,12 @@ XML_SOURCES=configuration.xml \
security.xml \
troubleshooting.xml
if build_documentation
htmldir = $(prefix)/share/doc/@PACKAGE@
dist_html_DATA = @PACKAGE@.html
@PACKAGE@.html: @PACKAGE@.xml $(XML_SOURCES)
$(XMLTO) $(XMLTO_FLAGS) html-nochunks @PACKAGE@.xml
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment