1
## Makefile for the man subdirectory of the GNU NLS Utilities
2
## Copyright (C) 2001 Free Software Foundation, Inc.
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)
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.
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.
18
## Process this file with automake to produce Makefile.in.
22
docdir = $(prefix)/doc/@PACKAGE@
25
AUTOMAKE_OPTIONS = 1.2 gnits
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
34
man_HTML = gettext.3.html ngettext.3.html \
35
textdomain.3.html bindtextdomain.3.html bind_textdomain_codeset.3.html
37
EXTRA_DIST = $(man_MANS) $(man_MAN3IN) $(man_HTML)
38
MAINTAINERCLEANFILES = $(man_MAN1) $(man_MAN3) $(man_HTML)
42
# groff 1.17 or newer.
43
MAN2HTML = groff -mandoc -Thtml
46
# We distribute both the man pages and their HTML equivalent.
47
# The user can generate the parts, via
52
install-data-local: install-html
53
installdirs-local: installdirs-html
54
uninstall-local: uninstall-html
59
gettext.3: gettext.3.in $(top_srcdir)/configure.in
60
sed -e 's/@''VERSION''@/@VERSION@/g' < $(srcdir)/gettext.3.in > t-$@
62
ngettext.3: ngettext.3.in $(top_srcdir)/configure.in
63
sed -e 's/@''VERSION''@/@VERSION@/g' < $(srcdir)/ngettext.3.in > t-$@
65
textdomain.3: textdomain.3.in $(top_srcdir)/configure.in
66
sed -e 's/@''VERSION''@/@VERSION@/g' < $(srcdir)/textdomain.3.in > t-$@
68
bindtextdomain.3: bindtextdomain.3.in $(top_srcdir)/configure.in
69
sed -e 's/@''VERSION''@/@VERSION@/g' < $(srcdir)/bindtextdomain.3.in > 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-$@
76
# Man pages in HTML format.
80
gettext.3.html: gettext.3.in
81
$(MAN2HTML) $(srcdir)/gettext.3.in > t-$@
83
ngettext.3.html: ngettext.3.in
84
$(MAN2HTML) $(srcdir)/ngettext.3.in > t-$@
86
textdomain.3.html: textdomain.3.in
87
$(MAN2HTML) $(srcdir)/textdomain.3.in > t-$@
89
bindtextdomain.3.html: bindtextdomain.3.in
90
$(MAN2HTML) $(srcdir)/bindtextdomain.3.in > t-$@
92
bind_textdomain_codeset.3.html: bind_textdomain_codeset.3.in
93
$(MAN2HTML) $(srcdir)/bind_textdomain_codeset.3.in > t-$@
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; \
104
$(mkinstalldirs) $(DESTDIR)$(htmldir)
107
for file in $(man_HTML); do \
108
$(RM) $(DESTDIR)$(htmldir)/$$file; \
112
# One more automake bug.
113
installdirs: installdirs-local