~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to man/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2002-04-10 13:17:42 UTC
  • Revision ID: james.westby@ubuntu.com-20020410131742-npf89tsaygdolprj
Tags: upstream-0.10.40
ImportĀ upstreamĀ versionĀ 0.10.40

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Makefile for the man subdirectory of the GNU NLS Utilities
 
2
## Copyright (C) 2001 Free Software Foundation, Inc.
 
3
##
 
4
## This program is free software; you can redistribute it and/or modify
 
5
## it under the terms of the GNU General Public License as published by
 
6
## the Free Software Foundation; either version 2, or (at your option)
 
7
## any later version.
 
8
##
 
9
## This program is distributed in the hope that it will be useful,
 
10
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
## GNU General Public License for more details.
 
13
##
 
14
## You should have received a copy of the GNU General Public License
 
15
## along with this program; if not, write to the Free Software
 
16
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
17
 
 
18
## Process this file with automake to produce Makefile.in.
 
19
 
 
20
VERSION = @VERSION@
 
21
mandir = @mandir@
 
22
docdir = $(prefix)/doc/@PACKAGE@
 
23
htmldir = $(docdir)
 
24
 
 
25
AUTOMAKE_OPTIONS = 1.2 gnits
 
26
 
 
27
man_MAN3 = gettext.3 ngettext.3 \
 
28
textdomain.3 bindtextdomain.3 bind_textdomain_codeset.3
 
29
man_MAN3IN = gettext.3.in ngettext.3.in \
 
30
textdomain.3.in bindtextdomain.3.in bind_textdomain_codeset.3.in
 
31
man_MANS = $(man_MAN3) \
 
32
dgettext.3 dcgettext.3 dngettext.3 dcngettext.3
 
33
 
 
34
man_HTML = gettext.3.html ngettext.3.html \
 
35
textdomain.3.html bindtextdomain.3.html bind_textdomain_codeset.3.html
 
36
 
 
37
EXTRA_DIST = $(man_MANS) $(man_MAN3IN) $(man_HTML)
 
38
MAINTAINERCLEANFILES = $(man_MAN1) $(man_MAN3) $(man_HTML)
 
39
 
 
40
RM = rm -f
 
41
 
 
42
# groff 1.17 or newer.
 
43
MAN2HTML = groff -mandoc -Thtml
 
44
 
 
45
 
 
46
# We distribute both the man pages and their HTML equivalent.
 
47
# The user can generate the parts, via
 
48
#   make man
 
49
#   make html
 
50
 
 
51
all-local: html
 
52
install-data-local: install-html
 
53
installdirs-local: installdirs-html
 
54
uninstall-local: uninstall-html
 
55
 
 
56
 
 
57
# Man pages.
 
58
 
 
59
gettext.3: gettext.3.in $(top_srcdir)/configure.in
 
60
        sed -e 's/@''VERSION''@/@VERSION@/g' < $(srcdir)/gettext.3.in > t-$@
 
61
        mv t-$@ $@
 
62
ngettext.3: ngettext.3.in $(top_srcdir)/configure.in
 
63
        sed -e 's/@''VERSION''@/@VERSION@/g' < $(srcdir)/ngettext.3.in > t-$@
 
64
        mv t-$@ $@
 
65
textdomain.3: textdomain.3.in $(top_srcdir)/configure.in
 
66
        sed -e 's/@''VERSION''@/@VERSION@/g' < $(srcdir)/textdomain.3.in > t-$@
 
67
        mv t-$@ $@
 
68
bindtextdomain.3: bindtextdomain.3.in $(top_srcdir)/configure.in
 
69
        sed -e 's/@''VERSION''@/@VERSION@/g' < $(srcdir)/bindtextdomain.3.in > t-$@
 
70
        mv t-$@ $@
 
71
bind_textdomain_codeset.3: bind_textdomain_codeset.3.in $(top_srcdir)/configure.in
 
72
        sed -e 's/@''VERSION''@/@VERSION@/g' < $(srcdir)/bind_textdomain_codeset.3.in > t-$@
 
73
        mv t-$@ $@
 
74
 
 
75
 
 
76
# Man pages in HTML format.
 
77
 
 
78
html: $(man_HTML)
 
79
 
 
80
gettext.3.html: gettext.3.in
 
81
        $(MAN2HTML) $(srcdir)/gettext.3.in > t-$@
 
82
        mv t-$@ $@
 
83
ngettext.3.html: ngettext.3.in
 
84
        $(MAN2HTML) $(srcdir)/ngettext.3.in > t-$@
 
85
        mv t-$@ $@
 
86
textdomain.3.html: textdomain.3.in
 
87
        $(MAN2HTML) $(srcdir)/textdomain.3.in > t-$@
 
88
        mv t-$@ $@
 
89
bindtextdomain.3.html: bindtextdomain.3.in
 
90
        $(MAN2HTML) $(srcdir)/bindtextdomain.3.in > t-$@
 
91
        mv t-$@ $@
 
92
bind_textdomain_codeset.3.html: bind_textdomain_codeset.3.in
 
93
        $(MAN2HTML) $(srcdir)/bind_textdomain_codeset.3.in > t-$@
 
94
        mv t-$@ $@
 
95
 
 
96
install-html:
 
97
        $(mkinstalldirs) $(DESTDIR)$(htmldir)
 
98
        for file in $(man_HTML); do \
 
99
          if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
 
100
          $(INSTALL_DATA) $$dir/$$file $(DESTDIR)$(htmldir)/$$file; \
 
101
        done
 
102
 
 
103
installdirs-html:
 
104
        $(mkinstalldirs) $(DESTDIR)$(htmldir)
 
105
 
 
106
uninstall-html:
 
107
        for file in $(man_HTML); do \
 
108
          $(RM) $(DESTDIR)$(htmldir)/$$file; \
 
109
        done
 
110
 
 
111
 
 
112
# One more automake bug.
 
113
installdirs: installdirs-local