summaryrefslogtreecommitdiff
path: root/docbook.am
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-08-25 13:12:49 -0400
committerGaetan Nadon <memsize@videotron.ca>2011-08-25 13:12:49 -0400
commitd5b3605f3b0639452e892e9ff3afb18bb7442069 (patch)
treeb3d4b1295fbb23565203a64cd0ae5e596a2ac92f /docbook.am
parent7f23c72c94d9d14122426b0d8c66054f1402769a (diff)
docbook.am: do not generate docs if docbook customization layer is missing
The stylesheets used to be only about style, fonts or colors. Complex features are now used like olink and chunked html which may cause a build break when stylesheets are missing or lead to hard to find problem. Some modules may be built when stylesheets are present while others are built without. There is no requirement to build crippled docs. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'docbook.am')
-rw-r--r--docbook.am8
1 files changed, 1 insertions, 7 deletions
diff --git a/docbook.am b/docbook.am
index 2ffb7e6..e2a7018 100644
--- a/docbook.am
+++ b/docbook.am
@@ -21,13 +21,11 @@ shelf_DATA =
dist_shelf_DATA = $(docbook) $(chapters)
if HAVE_XMLTO
+if HAVE_STYLESHEETS
#
# Generate DocBook/XML output formats with or without stylesheets
#
-# Stylesheets are available if the package xorg-sgml-doctools is installed
-if HAVE_STYLESHEETS
-
# The location where all cross reference databases are installed
sgmldbsdir = $(XORG_SGML_PATH)/X11/dbs
masterdb = "$(sgmldbsdir)/masterdb$(suffix $@).xml"
@@ -43,7 +41,6 @@ XMLTO_XHTML_FLAGS = \
XMLTO_FO_FLAGS = \
-x $(STYLESHEET_SRCDIR)/xorg-fo.xsl
-endif HAVE_STYLESHEETS
shelf_DATA += $(docbook:.xml=.html)
%.html: %.xml $(chapters)
@@ -66,9 +63,6 @@ endif HAVE_XMLTO_TEXT
#
# Generate documents cross-reference target databases
#
-
-# This is only possible if the xorg-sgml-doctools package is installed
-if HAVE_STYLESHEETS
if HAVE_XSLTPROC
# DocBook/XML generated document cross-reference database