[PATCH libX11 1/6] docbook.am: do not generate docs if docbook customization layer is missing

Gaetan Nadon memsize at videotron.ca
Fri Sep 9 12:24:09 PDT 2011


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 at videotron.ca>
---
 docbook.am |    8 +-------
 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
-- 
1.7.4.1



More information about the xorg-devel mailing list