summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-06-19 23:40:37 -0700
committerKeith Packard <keithp@keithp.com>2010-07-23 12:41:25 -0700
commit44c9350d72b3eda982c642feb45d6648afc626cf (patch)
treec71d9ea8f86354edb70e540c806d2a7372ea6cca /doc
parent9fbbff3c0456f1969d45cc957d3260723caf62d7 (diff)
Use DocBook stylesheets from xorg-sgml-doctools if they're available
Bumps minimum xorg-macros requirement from 1.6 to 1.10 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Patrick E. Kane <pekane52@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/xml/.gitignore1
-rw-r--r--doc/xml/xmlrules.in10
2 files changed, 10 insertions, 1 deletions
diff --git a/doc/xml/.gitignore b/doc/xml/.gitignore
index 496173835..3d050f0d0 100644
--- a/doc/xml/.gitignore
+++ b/doc/xml/.gitignore
@@ -3,3 +3,4 @@ xserver.ent
Xserver-spec.html
Xserver-spec.pdf
Xserver-spec.txt
+xorg.css
diff --git a/doc/xml/xmlrules.in b/doc/xml/xmlrules.in
index 1be369112..0d094bee3 100644
--- a/doc/xml/xmlrules.in
+++ b/doc/xml/xmlrules.in
@@ -39,6 +39,14 @@ SUFFIXES = .xml .txt .html .pdf
XML_ENT_DIR = $(abs_top_builddir)/doc/xml
XMLTO_FLAGS = --searchpath $(XML_ENT_DIR)
+if HAVE_STYLESHEETS
+XMLTO_FLAGS += -m $(XSL_STYLESHEET)
+BUILT_DOC_FILES += xorg.css
+
+xorg.css: $(STYLESHEET_SRCDIR)/xorg.css
+ $(AM_V_GEN)cp -pf $(STYLESHEET_SRCDIR)/xorg.css $@
+endif
+
if HAVE_XMLTO
BUILT_DOC_FILES += $(TXT_FILES)
.xml.txt:
@@ -59,7 +67,7 @@ endif
endif
-CLEAN_DOC_FILES = $(TXT_FILES) $(HTML_FILES) $(PDF_FILES)
+CLEAN_DOC_FILES = $(TXT_FILES) $(HTML_FILES) $(PDF_FILES) xorg.css
# All the files we build depend on the entities
$(BUILT_DOC_FILES): $(XML_ENT_DIR)/xserver.ent