Skip to content
Snippets Groups Projects
Commit 1be4e490 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Conditionally build doc/ dir

parent 82739330
Branches
Tags
No related merge requests found
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
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