~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to specs/troffrules.in

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-12-04 11:43:54 UTC
  • mfrom: (1.1.10 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091204114354-0lik4mbb1bv1a8nw
Tags: 2:1.3.2-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add 100_latin_locale_alias.diff (LP 379785)

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 to use, copy, modify, distribute, and sell this software and its
 
5
# documentation for any purpose is hereby granted without fee, provided that
 
6
# the above copyright notice appear in all copies and that both that
 
7
# copyright notice and this permission notice appear in supporting
 
8
# documentation.
 
9
#
 
10
# The above copyright notice and this permission notice shall be included
 
11
# in all copies or substantial portions of the Software.
 
12
#
 
13
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
14
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
15
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 
16
# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
 
17
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 
18
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 
19
# OTHER DEALINGS IN THE SOFTWARE.
 
20
#
 
21
# Except as contained in this notice, the name of the copyright holders shall
 
22
# not be used in advertising or otherwise to promote the sale, use or
 
23
# other dealings in this Software without prior written authorization
 
24
# from the copyright holders.
 
25
#
 
26
 
 
27
# Based on xc/doc/specs/*/Makefile from X11R6.9
 
28
 
 
29
EXTRA_DIST = $(doc_sources)
 
30
 
 
31
if HAVE_PS2PDF
 
32
printable_format = .pdf
 
33
else
 
34
printable_format = .ps
 
35
endif
 
36
 
 
37
if BUILD_SPECS
 
38
doc_DATA =      $(doc_sources:.ms=.txt) \
 
39
                $(doc_sources:.ms=$(printable_format)) \
 
40
                $(doc_sources:.ms=.html)
 
41
 
 
42
CLEANFILES = $(doc_DATA)
 
43
MOSTLYCLEANFILES = index.*
 
44
 
 
45
# Pass version string as a troff string for substitution
 
46
GROFF_DEFS = -dxV="$(PACKAGE_STRING)"
 
47
 
 
48
# -e to run through eqn, -t to run through tbl
 
49
GROFF_FLAGS = -e -t -ms $(GROFF_DEFS) -I$(srcdir) $(top_srcdir)/specs/macros.t
 
50
 
 
51
SUFFIXES = .ms .ps .txt .html .pdf
 
52
 
 
53
.ms.ps:
 
54
        -$(AM_V_GEN) $(GROFF) -Tps $(GROFF_FLAGS) $< 2> index.$@.raw > $@
 
55
        @if grep '^[^1-9.]' index.$@.raw | grep -v warning; then exit 1; \
 
56
         else test $$? -le 1; fi
 
57
 
 
58
.ms.txt:
 
59
        $(AM_V_GEN) env GROFF_NO_SGR=TRUE $(GROFF) -Tutf8 $(GROFF_FLAGS) \
 
60
         $< 2> index.$@.raw > $@
 
61
 
 
62
.ms.html:
 
63
        $(AM_V_GEN) $(GROFF) -Thtml $(GROFF_FLAGS) $< 2> index.$@.raw > $@
 
64
 
 
65
.ps.pdf:
 
66
        $(AM_V_GEN) $(PS2PDF) $< $@
 
67
 
 
68
endif BUILD_SPECS