summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-11-05 15:22:29 -0400
committerGaetan Nadon <memsize@videotron.ca>2010-11-06 17:52:07 -0400
commitc8510a9a0bb10da9cfea6703aa38e5343a0d8b36 (patch)
treee166b7fc0c30455ddb2dd3d9f9f36ab38a2b1d02
parent92d11dbaba41fc68ad6ba2af91e85de2f328d48c (diff)
HTML file generation: use the installed copy of xorg.css
Currenlty the xorg.css file is copied in each location where a DocBook/XML file resides. This produces about 70 copies in the $(docdir) install tree. With this patch the HTML file contains the following XML element: <link rel="stylesheet" href="/home/nadon/xorg/src/share/sgml/X11/xorg.css" type="text/css" /> when build from prefix /home/nadon/xorg/src. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--.gitignore1
-rw-r--r--xmlrules.in9
2 files changed, 4 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 2a13ce0..a8719d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -80,4 +80,3 @@ core
*.ps
*.pdf
*.txt
-*.css
diff --git a/xmlrules.in b/xmlrules.in
index 9d41c65..1523a74 100644
--- a/xmlrules.in
+++ b/xmlrules.in
@@ -36,11 +36,10 @@ endif
XMLTO_FLAGS = --searchpath $(XORG_SGML_PATH)/X11
if HAVE_STYLESHEETS
-XMLTO_FLAGS += -m $(XSL_STYLESHEET) --stringparam img.src.path=$(abs_builddir)/
-
-xml_DATA += xorg.css
-xorg.css: $(STYLESHEET_SRCDIR)/xorg.css
- $(AM_V_GEN)cp -pf $(STYLESHEET_SRCDIR)/xorg.css $@
+XMLTO_FLAGS += \
+ -m $(XSL_STYLESHEET) \
+ --stringparam html.stylesheet=$(STYLESHEET_SRCDIR)/xorg.css \
+ --stringparam img.src.path=$(abs_builddir)/
endif
CLEANFILES = $(xml_DATA)