From d5b3605f3b0639452e892e9ff3afb18bb7442069 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Thu, 25 Aug 2011 13:12:49 -0400 Subject: 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 --- docbook.am | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/docbook.am b/docbook.am index 2ffb7e60..e2a70185 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 -- cgit v1.2.3