~ubuntu-branches/ubuntu/precise/xorg-server/precise-updates

« back to all changes in this revision

Viewing changes to devbook.am

  • Committer: Package Import Robot
  • Author(s): Christopher James Halse Rogers
  • Date: 2012-01-23 16:09:29 UTC
  • mfrom: (1.1.46) (0.11.34 sid)
  • Revision ID: package-import@ubuntu.com-20120123160929-k4xdb9b7xeesiukp
Tags: 2:1.11.3-0ubuntu8
* debian/patches/224_return_BadWindow_not_BadMatch.diff:
  - Fix the error values of a whole slew of window-related calls.
    Fixes some gnome-settings-daemon aborts in XLib (LP: #903973)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Generate output formats for a single DocBook/XML with/without chapters
 
3
#
 
4
# Variables set by the calling Makefile:
 
5
# noinst_DATA: developers docs are not installed
 
6
# docbook:  the main DocBook/XML file, no chapters, appendix or image files
 
7
# chapters: all files pulled in by an XInclude statement and images.
 
8
#
 
9
 
 
10
#
 
11
# This makefile is intended for Developers Documentation and is not installed.
 
12
# Do not use for Users docs or Specs which need to be installed and require olink support
 
13
# Refer to http://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html#id2584393
 
14
# for an explanation on documents classification.
 
15
#
 
16
 
 
17
# Developers documnetation is not installed
 
18
noinst_DATA =
 
19
 
 
20
# DocBook/XML file with chapters, appendix and images it includes
 
21
dist_noinst_DATA = $(docbook) $(chapters)
 
22
 
 
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
 
28
if HAVE_STYLESHEETS
 
29
 
 
30
# The location where all cross reference databases are installed
 
31
XMLTO_FLAGS =                                           \
 
32
        --searchpath "$(XORG_SGML_PATH)/X11"            \
 
33
        --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
 
43
 
 
44
noinst_DATA += $(docbook:.xml=.html)
 
45
%.html: %.xml  $(chapters)
 
46
        $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) $(XMLTO_XHTML_FLAGS) xhtml-nochunks $<
 
47
 
 
48
if HAVE_FOP
 
49
noinst_DATA += $(docbook:.xml=.pdf) $(docbook:.xml=.ps)
 
50
%.pdf: %.xml $(chapters)
 
51
        $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) $(XMLTO_FO_FLAGS) --with-fop pdf $<
 
52
%.ps: %.xml $(chapters)
 
53
        $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) $(XMLTO_FO_FLAGS) --with-fop ps $<
 
54
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
 
61
 
 
62
CLEANFILES = $(noinst_DATA)