• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/gettext-0.17/gettext-tools/doc/
1## Makefile for the gettext-tools/doc subdirectory of GNU gettext
2## Copyright (C) 1995-1997, 2001-2006 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 3 of the License, or
7## (at your option) 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, see <http://www.gnu.org/licenses/>.
16
17## Process this file with automake to produce Makefile.in.
18
19AUTOMAKE_OPTIONS = 1.2 gnits
20EXTRA_DIST =
21MOSTLYCLEANFILES =
22TEXINCLUDES = -I $(top_srcdir)/../gettext-runtime/doc
23
24SED = sed
25RM = rm -f
26
27MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
28MAKEINFOFLAGS = $(TEXINCLUDES) --no-split
29
30info_TEXINFOS = gettext.texi
31# List of texinfo sources @included by gettext.texi, excluding version.texi.
32gettext_TEXINFOS = \
33  xgettext.texi msginit.texi msgmerge.texi msgcat.texi msgconv.texi \
34  msggrep.texi msgfilter.texi msguniq.texi msgcomm.texi msgcmp.texi \
35  msgattrib.texi msgen.texi msgexec.texi msgfmt.texi msgunfmt.texi \
36  gettextize.texi autopoint.texi iso-639.texi iso-639-2.texi iso-3166.texi \
37  gpl.texi lgpl.texi fdl.texi \
38  $(top_srcdir)/../gettext-runtime/doc/rt-gettext.texi \
39  $(top_srcdir)/../gettext-runtime/doc/rt-ngettext.texi \
40  $(top_srcdir)/../gettext-runtime/doc/rt-envsubst.texi
41
42# The FAQ. To be edited with Mozilla.
43# The tutorial. To be edited by hand.
44doc_DATA = FAQ.html tutorial.html
45EXTRA_DIST += $(doc_DATA)
46
47EXTRA_DIST += \
48  iso-639.sed iso-639-2.sed iso-3166.sed \
49  ISO_639 ISO_639-2 ISO_3166 ISO_3166_de \
50  texi2html \
51  ChangeLog.0
52
53iso-639.texi: ISO_639 iso-639.sed
54	$(SED) -f $(srcdir)/iso-639.sed $(srcdir)/ISO_639 > iso-639.tmp
55	rm -f $(srcdir)/iso-639.texi
56	mv iso-639.tmp $(srcdir)/iso-639.texi
57
58iso-639-2.texi: ISO_639-2 iso-639-2.sed
59	$(SED) -f $(srcdir)/iso-639-2.sed $(srcdir)/ISO_639-2 > iso-639-2.tmp
60	rm -f $(srcdir)/iso-639-2.texi
61	mv iso-639-2.tmp $(srcdir)/iso-639-2.texi
62
63iso-3166.texi: ISO_3166 iso-3166.sed
64	$(SED) -f $(srcdir)/iso-3166.sed $(srcdir)/ISO_3166 > iso-3166.tmp
65	rm -f $(srcdir)/iso-3166.texi
66	mv iso-3166.tmp $(srcdir)/iso-3166.texi
67
68# The dependencies of stamp-vti generated by automake are incomplete.
69# So we have to duplicate the entire rule which would otherwise be generated
70# by automake.
71$(srcdir)/stamp-vti: $(info_TEXINFOS) $(gettext_TEXINFOS) $(top_srcdir)/../version.sh
72	(dir=.; test -f ./gettext.texi || dir=$(srcdir); \
73	set `$(SHELL) $(top_srcdir)/../build-aux/mdate-sh $$dir/gettext.texi`; \
74	echo "@set UPDATED $$1 $$2 $$3"; \
75	echo "@set UPDATED-MONTH $$2 $$3"; \
76	echo "@set EDITION $(VERSION)"; \
77	echo "@set VERSION $(VERSION)") > vti.tmp
78	cmp -s vti.tmp version.texi \
79	  || (echo "Updating version.texi"; \
80	      cp vti.tmp version.texi)
81	rm -f vti.tmp
82	cp version.texi $@
83
84# We distribute only the split HTML documentation.
85# The user can generate the others, via
86#   make gettext.ps
87#   make gettext.pdf
88#   make gettext.html
89
90all-local: html-local
91install-data-local: install-html
92installdirs-local: installdirs-html
93uninstall-local: uninstall-html
94# Hidden from automake, but really activated. Works around an automake-1.5 bug.
95#distdir: dist-html
96
97html-local: html-split
98# Override of automake's definition. The HTML files we want to distribute are
99# not the ones that automake knows about, and we cannot define HTMLS to a value
100# containing wildcards.
101install-html: install-html-split
102	@:
103uninstall-html: uninstall-html-split
104dist-html: dist-html-split
105
106CLEANFILES = gettext.pdf gettext.html
107# gettext.dvi and gettext.ps are already known to automake.
108MAINTAINERCLEANFILES = gettext_*.html
109
110
111# Documentation in DVI format.
112
113# Override of automake's definition:
114#TEXI2DVI = texi2dvi
115TEXI2DVI = texi2dvi $(TEXINCLUDES)
116
117# The install-dvi target is already defined by automake.
118
119installdirs-dvi:
120	$(mkdir_p) $(DESTDIR)$(dvidir)
121
122uninstall-dvi:
123	$(RM) $(DESTDIR)$(dvidir)/gettext.dvi
124
125# Temporary index files. automake removes only the predefined ones by itself.
126MOSTLYCLEANFILES += \
127  gettext.am gettext.ams \
128  gettext.cp gettext.cps \
129  gettext.ef gettext.efs \
130  gettext.em gettext.ems \
131  gettext.ev gettext.evs \
132  gettext.fn gettext.fns \
133  gettext.kw gettext.kws \
134  gettext.op gettext.ops \
135  gettext.pg gettext.pgs \
136  gettext.vr gettext.vrs
137
138
139# Documentation in Postscript format.
140
141# Override of automake's definition:
142#DVIPS = @DVIPS@
143DVIPS = @DVIPS@ -D600
144
145gettext.ps: gettext.dvi
146	$(DVIPS) -o $@ `if test -f gettext.dvi; then echo gettext.dvi; else echo $(srcdir)/gettext.dvi; fi`
147
148# The install-ps target is already defined by automake.
149
150installdirs-ps:
151	$(mkdir_p) $(DESTDIR)$(psdir)
152
153uninstall-ps:
154	$(RM) $(DESTDIR)$(psdir)/gettext.ps
155
156
157# Documentation in Portable Document Format.
158
159# Override of automake's definition:
160#TEXI2PDF = @TEXI2PDF@
161TEXI2PDF = @TEXI2PDF@ $(TEXINCLUDES)
162SUFFIXES = .pdf
163
164# The install-pdf target is already defined by automake.
165
166installdirs-pdf:
167	$(mkdir_p) $(DESTDIR)$(pdfdir)
168
169uninstall-pdf:
170	$(RM) $(DESTDIR)$(pdfdir)/gettext.pdf
171
172
173# Documentation in HTML format.
174
175TEXI2HTML = @PERL@ $(srcdir)/texi2html
176
177html-monolithic: gettext.html
178html-split: gettext_toc.html
179
180# Override of automake's definition.
181# We want to use texi2html, not makeinfo --html.
182# Newer versions of texi2html also need the options --no-menu --no-sec-nav.
183gettext.html: gettext.texi version.texi $(gettext_TEXINFOS)
184	$(TEXI2HTML) $(TEXINCLUDES) -number -monolithic `if test -f gettext.texi; then echo gettext.texi; else echo $(srcdir)/gettext.texi; fi`
185
186gettext_toc.html: gettext.texi version.texi $(gettext_TEXINFOS)
187	case "@PERL@" in \
188	  *"/missing perl") \
189	     $(TEXI2HTML) $(TEXINCLUDES) -number -split_chapter `if test -f gettext.texi; then echo gettext.texi; else echo $(srcdir)/gettext.texi; fi` || exit 0 ;; \
190	  *) $(RM) gettext_*.html ; \
191	     $(TEXI2HTML) $(TEXINCLUDES) -number -split_chapter `if test -f gettext.texi; then echo gettext.texi; else echo $(srcdir)/gettext.texi; fi` ;; \
192	esac
193
194install-html-monolithic: gettext.html
195	$(mkdir_p) $(DESTDIR)$(htmldir)
196	$(INSTALL_DATA) `if test -f gettext.html; then echo .; else echo $(srcdir); fi`/gettext.html $(DESTDIR)$(htmldir)/gettext.html
197
198install-html-split: gettext_toc.html
199	$(mkdir_p) $(DESTDIR)$(htmldir)
200	for file in `if test -f gettext_toc.html; then echo .; else echo $(srcdir); fi`/gettext_*.html; do \
201	  $(INSTALL_DATA) $$file $(DESTDIR)$(htmldir)/`basename $$file`; \
202	done
203
204installdirs-html:
205	$(mkdir_p) $(DESTDIR)$(htmldir)
206
207uninstall-html-monolithic:
208	$(RM) $(DESTDIR)$(htmldir)/gettext.html
209
210uninstall-html-split:
211	$(RM) $(DESTDIR)$(htmldir)/gettext_*.html
212
213dist-html-monolithic:
214	$(mkdir_p) $(distdir)/
215	file=gettext.html; \
216	if test -f $$file; then d=.; else d=$(srcdir); fi; \
217	cp -p $$d/$$file $(distdir)/$$file || exit 1
218
219# We would like to put gettext_*.html into EXTRA_DIST, but it doesn't work.
220dist-html-split:
221	$(mkdir_p) $(distdir)/
222	file=gettext_toc.html; \
223	if test -f $$file; then d=.; else d=$(srcdir); fi; \
224	for file in `cd $$d && echo gettext_*.html`; do \
225	  cp -p $$d/$$file $(distdir)/$$file || exit 1; \
226	done
227