GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / toolchains / hndtools-arm-linux-2.6.36-uclibc-4.5.3 / share / automake-1.11 / am / texinfos.am
blobc9dcd9d7b26692670ee1bc3be480c0ad14202bd5
1 ## automake - create Makefile.in from Makefile.am
3 ## Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 ## 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2, or (at your option)
9 ## any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 ## ----------- ##
20 ## Variables.  ##
21 ## ----------- ##
23 if %?LOCAL-TEXIS%
24 if ! %?CYGNUS%
25 TEXI2DVI = texi2dvi
27 else %?CYGNUS%
29 ## Find these programs wherever they may lie.  Yes, this has
30 ## intimate knowledge of the structure of the texinfo distribution.
31 MAKEINFO = `if test -f $(top_builddir)/../texinfo/makeinfo/makeinfo; then \
32             echo $(top_builddir)/../texinfo/makeinfo/makeinfo; \
33           else \
34             echo makeinfo; \
35           fi`
37 TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then \
38              echo $(top_srcdir)/../texinfo/util/texi2dvi; \
39            else \
40              echo texi2dvi; \
41            fi`
42 endif %?CYGNUS%
44 TEXI2PDF = $(TEXI2DVI) --pdf --batch
45 MAKEINFOHTML = $(MAKEINFO) --html
46 AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS)
47 endif %?LOCAL-TEXIS%
50 ## ---------- ##
51 ## Building.  ##
52 ## ---------- ##
54 ## The way to make PostScript, for those who want it.
55 if %?LOCAL-TEXIS%
56 DVIPS = dvips
57 .dvi.ps:
58         TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
59         $(DVIPS) -o $@ $<
60 endif %?LOCAL-TEXIS%
62 .PHONY: dvi dvi-am html html-am info info-am pdf pdf-am ps ps-am
63 if %?SUBDIRS%
64 RECURSIVE_TARGETS += dvi-recursive html-recursive info-recursive
65 RECURSIVE_TARGETS += pdf-recursive ps-recursive
66 dvi: dvi-recursive
67 html: html-recursive
68 info: info-recursive
69 pdf: pdf-recursive
70 ps: ps-recursive
71 else !%?SUBDIRS%
72 dvi: dvi-am
73 html: html-am
74 info: info-am
75 pdf: pdf-am
76 ps: ps-am
77 endif !%?SUBDIRS%
79 if %?LOCAL-TEXIS%
80 dvi-am: $(DVIS)
81 html-am: $(HTMLS)
82 info-am: $(INFO_DEPS)
83 pdf-am: $(PDFS)
84 ps-am: $(PSS)
85 else ! %?LOCAL-TEXIS%
86 dvi-am:
87 html-am:
88 info-am:
89 pdf-am:
90 ps-am:
91 endif ! %?LOCAL-TEXIS%
94 ## ------------ ##
95 ## Installing.  ##
96 ## ------------ ##
98 ## Look in both . and srcdir because the info pages might have been
99 ## rebuilt in the build directory.  Can't cd to srcdir; that might
100 ## break a possible install-sh reference.
102 ## Funny name due to --cygnus influence; we want to reserve
103 ## `install-info' for the user.
105 ## TEXINFOS primary are always installed in infodir, hence install-data
106 ## is hard coded.
107 if %?INSTALL-INFO%
108 if %?LOCAL-TEXIS%
109 am__installdirs += "$(DESTDIR)$(infodir)"
110 install-data-am: install-info-am
111 endif %?LOCAL-TEXIS%
112 endif %?INSTALL-INFO%
113 .PHONY: \
114   install-dvi  install-dvi-am \
115   install-html install-html-am \
116   install-info install-info-am \
117   install-pdf  install-pdf-am \
118   install-ps   install-ps-am
120 if %?SUBDIRS%
121 RECURSIVE_TARGETS += \
122   install-dvi-recursive \
123   install-html-recursive \
124   install-info-recursive \
125   install-pdf-recursive \
126   install-ps-recursive
127 install-dvi: install-dvi-recursive
128 install-html: install-html-recursive
129 install-info: install-info-recursive
130 install-pdf: install-pdf-recursive
131 install-ps: install-ps-recursive
132 else !%?SUBDIRS%
133 install-dvi: install-dvi-am
134 install-html: install-html-am
135 install-info: install-info-am
136 install-pdf: install-pdf-am
137 install-ps: install-ps-am
138 endif !%?SUBDIRS%
140 if %?LOCAL-TEXIS%
142 include inst-vars.am
144 install-dvi-am: $(DVIS)
145         @$(NORMAL_INSTALL)
146         test -z "$(dvidir)" || $(MKDIR_P) "$(DESTDIR)$(dvidir)"
147         @list='$(DVIS)'; test -n "$(dvidir)" || list=; \
148         for p in $$list; do \
149           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
150           echo "$$d$$p"; \
151         done | $(am__base_list) | \
152         while read files; do \
153           echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dvidir)'"; \
154           $(INSTALL_DATA) $$files "$(DESTDIR)$(dvidir)" || exit $$?; \
155         done
157 install-html-am: $(HTMLS)
158         @$(NORMAL_INSTALL)
159         test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)"
160         @list='$(HTMLS)'; list2=; test -n "$(htmldir)" || list=; \
161         for p in $$list; do \
162           if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \
163           $(am__strip_dir) \
164           if test -d "$$d$$p"; then \
165             echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)/$$f'"; \
166             $(MKDIR_P) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
167             echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
168             $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f" || exit $$?; \
169           else \
170             list2="$$list2 $$d$$p"; \
171           fi; \
172         done; \
173         test -z "$$list2" || { echo "$$list2" | $(am__base_list) | \
174         while read files; do \
175           echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \
176           $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \
177         done; }
179 install-info-am: $(INFO_DEPS)
180         @$(NORMAL_INSTALL)
181         test -z "$(infodir)" || $(MKDIR_P) "$(DESTDIR)$(infodir)"
182         @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
183         list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \
184         for file in $$list; do \
185 ## Strip possible $(srcdir) prefix.
186           case $$file in \
187             $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
188           esac; \
189           if test -f $$file; then d=.; else d=$(srcdir); fi; \
190 ## 8+3 filesystems cannot deal with foo.info-N filenames: they all
191 ## conflict.  DJGPP comes with a tool, DJTAR, that will rename these
192 ## files to foo.iNN while extracting the archive.  DJGPP's makeinfo
193 ## is patched to grok these filenames.  However we have to account
194 ## for the renaming when installing the info files.
196 ## If $file == foo.info, then $file_i == foo.i.  The reason we use two
197 ## shell commands instead of one ('s|\.info$$|.i|') is so that a suffix-less
198 ## `foo' becomes `foo.i' too.
199           file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \
200           for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \
201                        $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \
202             if test -f $$ifile; then \
203               echo "$$ifile"; \
204             else : ; fi; \
205           done; \
206         done | $(am__base_list) | \
207         while read files; do \
208           echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(infodir)'"; \
209           $(INSTALL_DATA) $$files "$(DESTDIR)$(infodir)" || exit $$?; done
210         @$(POST_INSTALL)
211 ## Only run this code if install-info actually exists, and it is not
212 ## the Debian install-info.  FIXME: once Debian install-info goes
213 ## away, we can remove this hack.  Some versions of Debian install-info
214 ## print their version on stderr (e.g. 1.8.3), other do it in
215 ## on stdout (e.g. 1.10.15).
217 ## Do not use
218 ##    install-info --version 2>&1 | sed 1q | grep -v -i debian
219 ## as if install-info does not exist, grep -v will be happy, and
220 ## therefore the code will be triggered although install-info is missing.
221         @if (install-info --version && \
222              install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
223           list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \
224           for file in $$list; do \
225 ## Strip directory
226             relfile=`echo "$$file" | sed 's|^.*/||'`; \
227 ## Run `:' after install-info in case install-info fails.  We really
228 ## don't care about failures here, because they can be spurious.  For
229 ## instance if you don't have a dir file, install-info will fail.  I
230 ## think instead it should create a new dir file for you.  This bug
231 ## causes the `make distcheck' target to fail reliably.
232             echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\
233 ## Use `|| :' here because Sun make passes -e to sh; if install-info
234 ## fails then we'd fail if we used `;'.
235             install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\
236           done; \
237         else : ; fi
239 install-pdf-am: $(PDFS)
240         @$(NORMAL_INSTALL)
241         test -z "$(pdfdir)" || $(MKDIR_P) "$(DESTDIR)$(pdfdir)"
242         @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \
243         for p in $$list; do \
244           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
245           echo "$$d$$p"; \
246         done | $(am__base_list) | \
247         while read files; do \
248           echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pdfdir)'"; \
249           $(INSTALL_DATA) $$files "$(DESTDIR)$(pdfdir)" || exit $$?; done
251 install-ps-am: $(PSS)
252         @$(NORMAL_INSTALL)
253         test -z "$(psdir)" || $(MKDIR_P) "$(DESTDIR)$(psdir)"
254         @list='$(PSS)'; test -n "$(psdir)" || list=; \
255         for p in $$list; do \
256           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
257           echo "$$d$$p"; \
258         done | $(am__base_list) | \
259         while read files; do \
260           echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(psdir)'"; \
261           $(INSTALL_DATA) $$files "$(DESTDIR)$(psdir)" || exit $$?; done
263 else ! %?LOCAL-TEXIS%
264 install-dvi-am:
265 install-html-am:
266 install-info-am:
267 install-pdf-am:
268 install-ps-am:
269 endif ! %?LOCAL-TEXIS%
272 ## -------------- ##
273 ## Uninstalling.  ##
274 ## -------------- ##
276 if %?LOCAL-TEXIS%
277 .PHONY uninstall-am: \
278   uninstall-dvi-am \
279   uninstall-html-am \
280   uninstall-info-am \
281   uninstall-ps-am \
282   uninstall-pdf-am
284 uninstall-dvi-am:
285         @$(NORMAL_UNINSTALL)
286         @list='$(DVIS)'; test -n "$(dvidir)" || list=; \
287         for p in $$list; do \
288           $(am__strip_dir) \
289           echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \
290           rm -f "$(DESTDIR)$(dvidir)/$$f"; \
291         done
293 uninstall-html-am:
294         @$(NORMAL_UNINSTALL)
295         @list='$(HTMLS)'; test -n "$(htmldir)" || list=; \
296         for p in $$list; do \
297           $(am__strip_dir) \
298 ## $f can be a directory, hence the -r.
299           echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \
300           rm -rf "$(DESTDIR)$(htmldir)/$$f"; \
301         done
303 uninstall-info-am:
304         @$(PRE_UNINSTALL)
305 ## Run two loops here so that we can handle PRE_UNINSTALL and
306 ## NORMAL_UNINSTALL correctly.
307         @if test -d '$(DESTDIR)$(infodir)' && \
308             (install-info --version && \
309              install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
310           list='$(INFO_DEPS)'; \
311           for file in $$list; do \
312             relfile=`echo "$$file" | sed 's|^.*/||'`; \
313 ## install-info needs the actual info file.  We use the installed one,
314 ## rather than relying on one still being in srcdir or builddir.
315 ## However, `make uninstall && make uninstall' should not fail,
316 ## so we ignore failure if the file did not exist.
317             echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \
318             if install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \
319             then :; else test ! -f "$(DESTDIR)$(infodir)/$$relfile" || exit 1; fi; \
320           done; \
321         else :; fi
322         @$(NORMAL_UNINSTALL)
323         @list='$(INFO_DEPS)'; \
324         for file in $$list; do \
325           relfile=`echo "$$file" | sed 's|^.*/||'`; \
326 ## DJGPP-style info files.  See comment in install-info-am.
327           relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \
328           (if test -d "$(DESTDIR)$(infodir)" && cd "$(DESTDIR)$(infodir)"; then \
329              echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \
330              rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \
331            else :; fi); \
332         done
334 uninstall-pdf-am:
335         @$(NORMAL_UNINSTALL)
336         @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \
337         for p in $$list; do \
338           $(am__strip_dir) \
339           echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \
340           rm -f "$(DESTDIR)$(pdfdir)/$$f"; \
341         done
343 uninstall-ps-am:
344         @$(NORMAL_UNINSTALL)
345         @list='$(PSS)'; test -n "$(psdir)" || list=; \
346         for p in $$list; do \
347           $(am__strip_dir) \
348           echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \
349           rm -f "$(DESTDIR)$(psdir)/$$f"; \
350         done
351 endif %?LOCAL-TEXIS%
353 if %?LOCAL-TEXIS%
354 .PHONY: dist-info
355 dist-info: $(INFO_DEPS)
356         @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
357         list='$(INFO_DEPS)'; \
358         for base in $$list; do \
359 ## Strip possible $(srcdir) prefix.
360           case $$base in \
361             $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \
362           esac; \
363           if test -f $$base; then d=.; else d=$(srcdir); fi; \
364           base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \
365           for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \
366             if test -f $$file; then \
367 ## Strip leading '$$d/'.
368               relfile=`expr "$$file" : "$$d/\(.*\)"`; \
369               test -f "$(distdir)/$$relfile" || \
370                 cp -p $$file "$(distdir)/$$relfile"; \
371             else :; fi; \
372           done; \
373         done
374 endif %?LOCAL-TEXIS%
377 ## ---------- ##
378 ## Cleaning.  ##
379 ## ---------- ##
381 ## The funny name is due to --cygnus influence; in Cygnus mode,
382 ## `clean-info' is a target that users can use.
384 if %?LOCAL-TEXIS%
385 .PHONY mostlyclean-am: mostlyclean-aminfo
386 .PHONY: mostlyclean-aminfo
387 mostlyclean-aminfo:
388 ## Use `-rf', not just `-f', because the %*CLEAN% substitutions can also
389 ## contain any directory created by `makeinfo --html'.
390         -rm -rf %MOSTLYCLEAN%
392 .PHONY clean-am: clean-aminfo
393 clean-aminfo:
394 ## Use `-rf', not just `-f', because the %*CLEAN% substitutions can also
395 ## contain any directory created by `makeinfo --html'.
396 ?TEXICLEAN?     -test -z "%TEXICLEAN%" \
397 ?TEXICLEAN?     || rm -rf %TEXICLEAN%
399 .PHONY maintainer-clean-am: maintainer-clean-aminfo
400 maintainer-clean-aminfo:
401         @list='$(INFO_DEPS)'; for i in $$list; do \
402 ## .iNN files are DJGPP-style info files.
403           i_i=`echo "$$i" | sed 's|\.info$$||;s|$$|.i|'`; \
404           echo " rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]"; \
405           rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]; \
406         done
407 ## Use `-rf', not just `-f', because the %*CLEAN% substitutions can also
408 ## contain any directory created by `makeinfo --html'.
409 ?MAINTCLEAN?    -test -z "%MAINTCLEAN%" \
410 ?MAINTCLEAN?    || rm -rf %MAINTCLEAN%
412 ?CYGNUS?.PHONY: clean-info
413 ?CYGNUS?clean-info: mostlyclean-aminfo clean-aminfo
414 endif %?LOCAL-TEXIS%