~ubuntu-branches/ubuntu/trusty/x11proto-core/trusty

« back to all changes in this revision

Viewing changes to docbook.am

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2012-04-14 19:14:24 UTC
  • mfrom: (1.1.15) (18.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120414191424-p99je2fzczh1zr92
Tags: 7.0.23-1
* New upstream release.
* Build pdf docs.
* Set docdir in configure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
dist_shelf_DATA = $(docbook) $(chapters)
22
22
 
23
23
if HAVE_XMLTO
24
 
#
25
 
# Generate DocBook/XML output formats with or without stylesheets
26
 
#
27
 
 
28
 
# Stylesheets are available if the package xorg-sgml-doctools is installed
29
24
if HAVE_STYLESHEETS
30
25
 
31
 
# The location where all cross reference databases are installed
32
 
sgmldbsdir = $(XORG_SGML_PATH)/X11/dbs
33
 
masterdb = "$(sgmldbsdir)/masterdb$(suffix $@).xml"
34
 
XMLTO_FLAGS =                                                   \
35
 
        --searchpath "$(XORG_SGML_PATH)/X11"                    \
36
 
        --stringparam target.database.document=$(masterdb)      \
37
 
        --stringparam current.docid="$(<:.xml=)"                \
38
 
        --stringparam collect.xref.targets="no"
39
 
 
40
 
XMLTO_XHTML_FLAGS = \
41
 
        -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl \
42
 
        --stringparam html.stylesheet=$(STYLESHEET_SRCDIR)/xorg.css
43
 
 
44
 
XMLTO_FO_FLAGS = \
45
 
        -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl
46
 
endif HAVE_STYLESHEETS
 
26
XMLTO_SEARCHPATH_FLAGS =                                \
 
27
        --searchpath "$(XORG_SGML_PATH)/X11"            \
 
28
        --searchpath "$(abs_top_builddir)"
 
29
XMLTO_HTML_OLINK_FLAGS = \
 
30
        --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.html.xml \
 
31
        --stringparam current.docid="$(<:.xml=)"
 
32
XMLTO_HTML_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl
 
33
XMLTO_HTML_FLAGS =                                      \
 
34
        $(XMLTO_SEARCHPATH_FLAGS)                       \
 
35
        $(XMLTO_HTML_STYLESHEET_FLAGS)                  \
 
36
        $(XMLTO_HTML_OLINK_FLAGS)
47
37
 
48
38
shelf_DATA += $(docbook:.xml=.html)
49
 
%.html: %.xml  $(chapters)
50
 
        $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) $(XMLTO_XHTML_FLAGS) xhtml-nochunks $<
 
39
%.html: %.xml $(chapters)
 
40
        $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $<
 
41
 
 
42
if HAVE_XMLTO_TEXT
 
43
 
 
44
shelf_DATA += $(docbook:.xml=.txt)
 
45
%.txt: %.xml $(chapters)
 
46
        $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $<
 
47
endif HAVE_XMLTO_TEXT
51
48
 
52
49
if HAVE_FOP
53
 
shelf_DATA += $(docbook:.xml=.pdf) $(docbook:.xml=.ps)
 
50
XMLTO_FO_IMAGEPATH_FLAGS = --stringparam img.src.path=$(abs_builddir)/
 
51
XMLTO_PDF_OLINK_FLAGS = \
 
52
        --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.pdf.xml \
 
53
        --stringparam current.docid="$(<:.xml=)"
 
54
XMLTO_FO_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl
 
55
 
 
56
XMLTO_FO_FLAGS =                                        \
 
57
        $(XMLTO_SEARCHPATH_FLAGS)                       \
 
58
        $(XMLTO_FO_STYLESHEET_FLAGS)                    \
 
59
        $(XMLTO_FO_IMAGEPATH_FLAGS)                     \
 
60
        $(XMLTO_PDF_OLINK_FLAGS)
 
61
 
 
62
shelf_DATA += $(docbook:.xml=.pdf)
54
63
%.pdf: %.xml $(chapters)
55
 
        $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) $(XMLTO_FO_FLAGS) --with-fop pdf $<
 
64
        $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $<
 
65
 
 
66
shelf_DATA += $(docbook:.xml=.ps)
56
67
%.ps: %.xml $(chapters)
57
 
        $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) $(XMLTO_FO_FLAGS) --with-fop ps $<
 
68
        $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $<
58
69
endif HAVE_FOP
59
70
 
60
 
if HAVE_XMLTO_TEXT
61
 
shelf_DATA += $(docbook:.xml=.txt)
62
 
%.txt: %.xml $(chapters)
63
 
        $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) $(XMLTO_XHTML_FLAGS) txt $<
64
 
endif HAVE_XMLTO_TEXT
65
 
 
66
 
#
67
71
# Generate documents cross-reference target databases
68
 
#
69
 
 
70
 
# This is only possible if the xorg-sgml-doctools package is installed
71
 
if HAVE_STYLESHEETS
72
72
if HAVE_XSLTPROC
73
73
 
74
 
# DocBook/XML generated document cross-reference database
75
 
shelf_DATA += $(docbook:.xml=.html.db) $(docbook:.xml=.fo.db)
76
 
 
77
 
# Generate DocBook/XML document cross-reference database
78
 
# Flags for the XSL Transformation processor generating xref target databases
79
 
XSLTPROC_FLAGS =                                        \
 
74
XSLT_SEARCHPATH_FLAGS =                                 \
80
75
        --path "$(XORG_SGML_PATH)/X11"                  \
81
 
        --stringparam targets.filename "$@"             \
82
 
        --stringparam collect.xref.targets "only"       \
83
 
        --nonet --xinclude
84
 
 
 
76
        --path "$(abs_top_builddir)"
 
77
XSLT_OLINK_FLAGS =                                      \
 
78
        --stringparam targets.filename "$@"             \
 
79
        --stringparam collect.xref.targets "only"       \
 
80
        --stringparam olink.base.uri "$(@:.db=)"
 
81
 
 
82
XSLT_HTML_FLAGS =                                       \
 
83
        $(XSLT_SEARCHPATH_FLAGS)                        \
 
84
        $(XSLT_OLINK_FLAGS)                             \
 
85
        --nonet --xinclude                              \
 
86
        $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl
 
87
XSLT_PDF_FLAGS =                                        \
 
88
        $(XSLT_SEARCHPATH_FLAGS)                        \
 
89
        $(XSLT_OLINK_FLAGS)                             \
 
90
        --nonet --xinclude                              \
 
91
        $(STYLESHEET_SRCDIR)/xorg-fo.xsl
 
92
 
 
93
shelf_DATA += $(docbook:.xml=.html.db)
85
94
%.html.db: %.xml  $(chapters)
86
 
        $(AM_V_GEN)$(XSLTPROC) $(XSLTPROC_FLAGS) \
87
 
        http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl $<
 
95
        $(AM_V_GEN)$(XSLTPROC) $(XSLT_HTML_FLAGS) $<
88
96
 
89
 
%.fo.db: %.xml $(chapters)
90
 
        $(AM_V_GEN)$(XSLTPROC) $(XSLTPROC_FLAGS) \
91
 
        http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl $<
 
97
shelf_DATA += $(docbook:.xml=.pdf.db)
 
98
%.pdf.db: %.xml $(chapters)
 
99
        $(AM_V_GEN)$(XSLTPROC) $(XSLT_PDF_FLAGS) $<
92
100
 
93
101
endif HAVE_XSLTPROC
94
102
endif HAVE_STYLESHEETS