Skip to content

Commit 079a758

Browse files
memsizekeith-packard
authored andcommitted
devbook.am: maintenance update from docbook.am
The developer docs are generated from a subset of docbook.am which is sometimes updated. The one difference for xserver is the embedded css style in the HEAD element. Reviewed-by: Jeremy Huddleston <[email protected]> Signed-off-by: Gaetan Nadon <[email protected]> Signed-off-by: Keith Packard <[email protected]>
1 parent 82c55b5 commit 079a758

File tree

1 file changed

+19
-26
lines changed

1 file changed

+19
-26
lines changed

devbook.am

+19-26
Original file line numberDiff line numberDiff line change
@@ -20,43 +20,36 @@ noinst_DATA =
2020
# DocBook/XML file with chapters, appendix and images it includes
2121
dist_noinst_DATA = $(docbook) $(chapters)
2222

23-
#
24-
# Generate DocBook/XML output formats with or without stylesheets
25-
#
26-
27-
# Stylesheets are available if the package xorg-sgml-doctools is installed
2823
if HAVE_STYLESHEETS
2924

30-
# The location where all cross reference databases are installed
31-
XMLTO_FLAGS = \
32-
--searchpath "$(XORG_SGML_PATH)/X11" \
25+
XMLTO_HTML_FLAGS = \
26+
--searchpath "$(XORG_SGML_PATH)/X11" \
3327
--searchpath "$(abs_top_builddir)" \
34-
--stringparam current.docid="$(<:.xml=)"
35-
36-
XMLTO_XHTML_FLAGS = \
37-
-m $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl \
38-
--stringparam html.stylesheet=$(STYLESHEET_SRCDIR)/xorg.css
39-
40-
XMLTO_FO_FLAGS = \
41-
-m $(STYLESHEET_SRCDIR)/xorg-fo.xsl
42-
endif HAVE_STYLESHEETS
28+
-x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl
4329

4430
noinst_DATA += $(docbook:.xml=.html)
4531
%.html: %.xml $(chapters)
46-
$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) $(XMLTO_XHTML_FLAGS) xhtml-nochunks $<
32+
$(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $<
33+
34+
if HAVE_XMLTO_TEXT
35+
noinst_DATA += $(docbook:.xml=.txt)
36+
%.txt: %.xml $(chapters)
37+
$(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $<
38+
endif HAVE_XMLTO_TEXT
4739

4840
if HAVE_FOP
41+
XMLTO_FO_FLAGS = \
42+
--searchpath "$(XORG_SGML_PATH)/X11" \
43+
--searchpath "$(abs_top_builddir)" \
44+
--stringparam img.src.path=$(abs_builddir)/ \
45+
-x $(STYLESHEET_SRCDIR)/xorg-fo.xsl
46+
4947
noinst_DATA += $(docbook:.xml=.pdf) $(docbook:.xml=.ps)
5048
%.pdf: %.xml $(chapters)
51-
$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) $(XMLTO_FO_FLAGS) --with-fop pdf $<
49+
$(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $<
5250
%.ps: %.xml $(chapters)
53-
$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) $(XMLTO_FO_FLAGS) --with-fop ps $<
51+
$(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $<
5452
endif HAVE_FOP
55-
56-
if HAVE_XMLTO_TEXT
57-
noinst_DATA += $(docbook:.xml=.txt)
58-
%.txt: %.xml $(chapters)
59-
$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) $(XMLTO_XHTML_FLAGS) txt $<
60-
endif HAVE_XMLTO_TEXT
53+
endif HAVE_STYLESHEETS
6154

6255
CLEANFILES = $(noinst_DATA)

0 commit comments

Comments
 (0)