~ubuntu-branches/ubuntu/oneiric/libxi/oneiric-proposed

« back to all changes in this revision

Viewing changes to doc/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2011-02-08 00:04:32 UTC
  • mfrom: (1.2.1 upstream) (4.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20110208000432-3f8ewrpwmfmf0in5
Tags: 2:1.4.1-1
* New upstream release.
* Use xorg-sgml-doctool's copy of xorg.css.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 
3
#
 
4
# Permission is hereby granted, free of charge, to any person obtaining a
 
5
# copy of this software and associated documentation files (the "Software"),
 
6
# to deal in the Software without restriction, including without limitation
 
7
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
 
8
# and/or sell copies of the Software, and to permit persons to whom the
 
9
# Software is furnished to do so, subject to the following conditions:
 
10
#
 
11
# The above copyright notice and this permission notice (including the next
 
12
# paragraph) shall be included in all copies or substantial portions of the
 
13
# Software.
 
14
#
 
15
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
16
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
17
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 
18
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
19
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 
20
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 
21
# DEALINGS IN THE SOFTWARE.
 
22
#
 
23
 
 
24
if ENABLE_SPECS
 
25
 
 
26
specdir = $(docdir)/$(subdir)
 
27
doc_sources = porting.xml
 
28
dist_spec_DATA = $(doc_sources)
 
29
 
 
30
if HAVE_XMLTO
 
31
spec_DATA = $(doc_sources:.xml=.html)
 
32
 
 
33
if HAVE_FOP
 
34
spec_DATA += $(doc_sources:.xml=.ps) $(doc_sources:.xml=.pdf)
 
35
endif
 
36
 
 
37
if HAVE_XMLTO_TEXT
 
38
spec_DATA += $(doc_sources:.xml=.txt)
 
39
endif
 
40
 
 
41
if HAVE_STYLESHEETS
 
42
XMLTO_FLAGS = -m $(XSL_STYLESHEET) \
 
43
        --stringparam html.stylesheet=$(STYLESHEET_SRCDIR)/xorg.css
 
44
endif
 
45
 
 
46
CLEANFILES = $(spec_DATA)
 
47
 
 
48
SUFFIXES = .xml .ps .pdf .txt .html
 
49
 
 
50
%.txt: %.xml $(dist_spec_DATA)
 
51
        $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) txt $<
 
52
 
 
53
%.html: %.xml $(dist_spec_DATA)
 
54
        $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks $<
 
55
 
 
56
%.pdf: %.xml $(dist_spec_DATA)
 
57
        $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop pdf $<
 
58
 
 
59
%.ps: %.xml $(dist_spec_DATA)
 
60
        $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop ps $<
 
61
 
 
62
endif HAVE_XMLTO
 
63
endif ENABLE_SPECS