* automake.in (parse_arguments): Call Getopt twice: once to catch
[platform/upstream/automake.git] / Makefile.in
1 # Makefile.in generated by automake 1.6a from Makefile.am.
2 # @configure_input@
3
4 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
5 # Free Software Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 srcdir = @srcdir@
18 top_srcdir = @top_srcdir@
19 VPATH = @srcdir@
20 pkgdatadir = $(datadir)/@PACKAGE@
21 pkglibdir = $(libdir)/@PACKAGE@
22 pkgincludedir = $(includedir)/@PACKAGE@
23 top_builddir = .
24
25 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
26 INSTALL = @INSTALL@
27 install_sh_DATA = $(install_sh) -c -m 644
28 install_sh_PROGRAM = $(install_sh) -c
29 install_sh_SCRIPT = $(install_sh) -c
30 INSTALL_HEADER = $(INSTALL_DATA)
31 transform = $(program_transform_name)
32 NORMAL_INSTALL = :
33 PRE_INSTALL = :
34 POST_INSTALL = :
35 NORMAL_UNINSTALL = :
36 PRE_UNINSTALL = :
37 POST_UNINSTALL = :
38 ACLOCAL = @ACLOCAL@
39 AMTAR = @AMTAR@
40 APIVERSION = @APIVERSION@
41 AUTOCONF = @AUTOCONF@
42 AUTOHEADER = @AUTOHEADER@
43 AUTOMAKE = @AUTOMAKE@
44 AWK = @AWK@
45 DEFS = @DEFS@
46 ECHO_C = @ECHO_C@
47 ECHO_N = @ECHO_N@
48 ECHO_T = @ECHO_T@
49 INSTALL_DATA = @INSTALL_DATA@
50 INSTALL_PROGRAM = @INSTALL_PROGRAM@
51 INSTALL_SCRIPT = @INSTALL_SCRIPT@
52 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
53 LIBS = @LIBS@
54 LN = @LN@
55 MAKEINFO = @MAKEINFO@
56 PACKAGE = @PACKAGE@
57 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
58 PACKAGE_NAME = @PACKAGE_NAME@
59 PACKAGE_STRING = @PACKAGE_STRING@
60 PACKAGE_TARNAME = @PACKAGE_TARNAME@
61 PACKAGE_VERSION = @PACKAGE_VERSION@
62 PATH_SEPARATOR = @PATH_SEPARATOR@
63 PERL = @PERL@
64 SET_MAKE = @SET_MAKE@
65 SHELL = @SHELL@
66 STRIP = @STRIP@
67 VERSION = @VERSION@
68 ac_ct_STRIP = @ac_ct_STRIP@
69 bindir = @bindir@
70 build_alias = @build_alias@
71 datadir = @datadir@
72 exec_prefix = @exec_prefix@
73 host_alias = @host_alias@
74 includedir = @includedir@
75 infodir = @infodir@
76 install_sh = @install_sh@
77 libdir = @libdir@
78 libexecdir = @libexecdir@
79 localstatedir = @localstatedir@
80 mandir = @mandir@
81 oldincludedir = @oldincludedir@
82 pkgvdatadir = @pkgvdatadir@
83 prefix = @prefix@
84 program_transform_name = @program_transform_name@
85 sbindir = @sbindir@
86 sharedstatedir = @sharedstatedir@
87 sysconfdir = @sysconfdir@
88 target_alias = @target_alias@
89
90 SUBDIRS = . m4 lib tests
91
92 bin_SCRIPTS = automake aclocal
93 info_TEXINFOS = automake.texi
94
95 TAGS_FILES = automake.in aclocal.in
96
97 # The following requires a fixed version of the Emacs 19.30 etags.
98 ETAGS_ARGS = --lang=none \
99  --regex='/^@node[ \t]+\([^,]+\)/\1/' $(srcdir)/automake.texi
100
101 TAGS_DEPENDENCIES = automake.texi
102
103 EXTRA_DIST = ChangeLog.1996 ChangeLog.1998 ChangeLog.2000 ChangeLog.2001
104
105 WGET = wget
106
107 FETCHFILES = config.guess config.sub texinfo.tex Automake/XFile.pm INSTALL \
108         install-sh
109
110 subdir = .
111 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
112 mkinstalldirs = $(SHELL) $(top_srcdir)/lib/mkinstalldirs
113 CONFIG_CLEAN_FILES = automake aclocal
114 SCRIPTS = $(bin_SCRIPTS)
115
116 DIST_SOURCES =
117 TEXINFO_TEX = $(top_srcdir)/lib/texinfo.tex
118 INFO_DEPS = automake.info
119 DVIS = automake.dvi
120 PDFS = automake.pdf
121 PSS = automake.ps
122 TEXINFOS = automake.texi
123
124 RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
125         ps-recursive install-info-recursive uninstall-info-recursive \
126         all-recursive install-data-recursive install-exec-recursive \
127         installdirs-recursive install-recursive uninstall-recursive \
128         check-recursive installcheck-recursive
129 DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
130         Makefile.in NEWS THANKS TODO aclocal.in aclocal.m4 automake.in \
131         configure configure.in install-sh mdate-sh missing \
132         mkinstalldirs stamp-vti version.texi
133 DIST_SUBDIRS = $(SUBDIRS)
134 all: all-recursive
135
136 .SUFFIXES:
137 .SUFFIXES: .dvi .info .pdf .ps .texi
138
139 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log
140 $(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
141         cd $(top_srcdir) && \
142           $(AUTOMAKE) --gnu  Makefile
143 Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
144         cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
145
146 $(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
147         $(SHELL) ./config.status --recheck
148 $(srcdir)/configure:  $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
149         cd $(srcdir) && $(AUTOCONF)
150
151 $(ACLOCAL_M4):  configure.in 
152         cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
153 automake: $(top_builddir)/config.status automake.in
154         cd $(top_builddir) && $(SHELL) ./config.status $@
155 aclocal: $(top_builddir)/config.status aclocal.in
156         cd $(top_builddir) && $(SHELL) ./config.status $@
157 binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
158 install-binSCRIPTS: $(bin_SCRIPTS)
159         @$(NORMAL_INSTALL)
160         $(mkinstalldirs) $(DESTDIR)$(bindir)
161         @list='$(bin_SCRIPTS)'; for p in $$list; do \
162           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
163           f="`echo $$p | sed -e 's|^.*/||'`"; \
164           if test -f $$d$$p; then \
165             f="`echo $$f|sed '$(transform)'`"; \
166             echo " $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f"; \
167             $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f; \
168           else :; fi; \
169         done
170
171 uninstall-binSCRIPTS:
172         @$(NORMAL_UNINSTALL)
173         @list='$(bin_SCRIPTS)'; for p in $$list; do \
174           f="`echo $$p | sed -e 's|^.*/||'`"; \
175           f="`echo $$f|sed '$(transform)'`"; \
176           echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
177           rm -f $(DESTDIR)$(bindir)/$$f; \
178         done
179
180 $(srcdir)/version.texi:  $(srcdir)/stamp-vti
181         @:
182 $(srcdir)/stamp-vti: automake.texi $(top_srcdir)/configure.in
183         @(set `$(SHELL) $(top_srcdir)/lib/mdate-sh $(srcdir)/automake.texi`; \
184         echo "@set UPDATED $$1 $$2 $$3"; \
185         echo "@set UPDATED-MONTH $$2 $$3"; \
186         echo "@set EDITION $(VERSION)"; \
187         echo "@set VERSION $(VERSION)") > vti.tmp
188         @cmp -s vti.tmp $(srcdir)/version.texi \
189           || (echo "Updating $(srcdir)/version.texi"; \
190               cp vti.tmp $(srcdir)/version.texi)
191         -@rm -f vti.tmp
192         @cp $(srcdir)/version.texi $@
193
194 mostlyclean-vti:
195         -rm -f vti.tmp
196
197 maintainer-clean-vti:
198         -rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi
199
200 automake.info: automake.texi $(srcdir)/version.texi
201 automake.dvi: automake.texi $(srcdir)/version.texi
202 automake.pdf: automake.texi $(srcdir)/version.texi
203
204 .texi.info:
205         @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
206         cd $(srcdir) \
207           && $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) \
208                `echo $< | sed 's,.*/,,'`
209
210 .texi.dvi:
211         TEXINPUTS="$(top_srcdir)/lib$(PATH_SEPARATOR)$$TEXINPUTS" \
212         MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
213         $(TEXI2DVI) $<
214
215 .texi.pdf:
216         TEXINPUTS="$(top_srcdir)/lib$(PATH_SEPARATOR)$$TEXINPUTS" \
217         MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
218         $(TEXI2PDF) $<
219
220 .texi:
221         @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
222         cd $(srcdir) \
223           && $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) \
224                `echo $< | sed 's,.*/,,'`
225 TEXI2DVI = texi2dvi
226
227 TEXI2PDF = $(TEXI2DVI) --pdf
228 DVIPS = dvips
229 .dvi.ps:
230         $(DVIPS) $< -o $@
231
232 uninstall-info-am:
233         $(PRE_UNINSTALL)
234         @if (install-info --version && \
235              install-info --version | grep -i -v debian) >/dev/null 2>&1; then \
236           list='$(INFO_DEPS)'; \
237           for file in $$list; do \
238             echo " install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file"; \
239             install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file; \
240           done; \
241         else :; fi
242         @$(NORMAL_UNINSTALL)
243         @list='$(INFO_DEPS)'; \
244         for file in $$list; do \
245           (if cd $(DESTDIR)$(infodir); then \
246              echo " rm -f $$file $$file-[0-9] $$file-[0-9][0-9])"; \
247              rm -f $$file $$file-[0-9] $$file-[0-9][0-9]; \
248            else :; fi); \
249         done
250
251 dist-info: $(INFO_DEPS)
252         list='$(INFO_DEPS)'; \
253         for base in $$list; do \
254           d=$(srcdir); \
255           for file in $$d/$$base*; do \
256             relfile=`expr "$$file" : "$$d/\(.*\)"`; \
257             test -f $(distdir)/$$relfile || \
258               cp -p $$file $(distdir)/$$relfile; \
259           done; \
260         done
261
262 mostlyclean-aminfo:
263         -rm -f automake.aux automake.cm automake.cp automake.cps automake.cv \
264           automake.dvi automake.fn automake.ky automake.log automake.op \
265           automake.ov automake.pdf automake.pg automake.ps automake.tmp \
266           automake.toc automake.tp automake.tr automake.vr automake.vrs
267
268 maintainer-clean-aminfo:
269         cd $(srcdir) && \
270         list='$(INFO_DEPS)'; for i in $$list; do \
271           rm -f $$i; \
272           if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
273             rm -f $$i-[0-9]*; \
274           fi; \
275         done
276
277 # This directory's subdirectories are mostly independent; you can cd
278 # into them and run `make' without going through this Makefile.
279 # To change the values of `make' variables: instead of editing Makefiles,
280 # (1) if the variable is set in `config.status', edit `config.status'
281 #     (which will cause the Makefiles to be regenerated when you run `make');
282 # (2) otherwise, pass the desired values on the `make' command line.
283 $(RECURSIVE_TARGETS):
284         @set fnord $$MAKEFLAGS; amf=$$2; \
285         dot_seen=no; \
286         target=`echo $@ | sed s/-recursive//`; \
287         list='$(SUBDIRS)'; for subdir in $$list; do \
288           echo "Making $$target in $$subdir"; \
289           if test "$$subdir" = "."; then \
290             dot_seen=yes; \
291             local_target="$$target-am"; \
292           else \
293             local_target="$$target"; \
294           fi; \
295           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
296            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
297         done; \
298         if test "$$dot_seen" = "no"; then \
299           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
300         fi; test -z "$$fail"
301
302 mostlyclean-recursive clean-recursive distclean-recursive \
303 maintainer-clean-recursive:
304         @set fnord $$MAKEFLAGS; amf=$$2; \
305         dot_seen=no; \
306         case "$@" in \
307           distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
308           *) list='$(SUBDIRS)' ;; \
309         esac; \
310         rev=''; for subdir in $$list; do \
311           if test "$$subdir" = "."; then :; else \
312             rev="$$subdir $$rev"; \
313           fi; \
314         done; \
315         rev="$$rev ."; \
316         target=`echo $@ | sed s/-recursive//`; \
317         for subdir in $$rev; do \
318           echo "Making $$target in $$subdir"; \
319           if test "$$subdir" = "."; then \
320             local_target="$$target-am"; \
321           else \
322             local_target="$$target"; \
323           fi; \
324           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
325            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
326         done && test -z "$$fail"
327 tags-recursive:
328         list='$(SUBDIRS)'; for subdir in $$list; do \
329           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
330         done
331 ctags-recursive:
332         list='$(SUBDIRS)'; for subdir in $$list; do \
333           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
334         done
335
336 ETAGS = etags
337 ETAGSFLAGS =
338
339 CTAGS = ctags
340 CTAGSFLAGS =
341
342 tags: TAGS
343
344 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
345         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346         unique=`for i in $$list; do \
347             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348           done | \
349           $(AWK) '    { files[$$0] = 1; } \
350                END { for (i in files) print i; }'`; \
351         mkid -fID $$unique
352
353 TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
354                 $(TAGS_FILES) $(LISP)
355         tags=; \
356         here=`pwd`; \
357         list='$(SUBDIRS)'; for subdir in $$list; do \
358           if test "$$subdir" = .; then :; else \
359             test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
360           fi; \
361         done; \
362         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
363         unique=`for i in $$list; do \
364             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365           done | \
366           $(AWK) '    { files[$$0] = 1; } \
367                END { for (i in files) print i; }'`; \
368         test -z "$(ETAGS_ARGS)$$tags$$unique" \
369           || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
370              $$tags $$unique
371
372 ctags: CTAGS
373 CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
374                 $(TAGS_FILES) $(LISP)
375         tags=; \
376         here=`pwd`; \
377         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
378         unique=`for i in $$list; do \
379             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
380           done | \
381           $(AWK) '    { files[$$0] = 1; } \
382                END { for (i in files) print i; }'`; \
383         test -z "$(CTAGS_ARGS)$$tags$$unique" \
384           || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
385              $$tags $$unique
386
387 GTAGS:
388         here=`$(am__cd) $(top_builddir) && pwd` \
389           && cd $(top_srcdir) \
390           && gtags -i $(GTAGS_ARGS) $$here
391
392 distclean-tags:
393         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
394 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
395
396 top_distdir = .
397 distdir = $(PACKAGE)-$(VERSION)
398
399 am__remove_distdir = \
400   { test ! -d $(distdir) \
401     || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
402          && rm -fr $(distdir); }; }
403
404 GZIP_ENV = --best
405 distcleancheck_listfiles = find . -type f -print
406
407 distdir: $(DISTFILES)
408         $(am__remove_distdir)
409         mkdir $(distdir)
410         $(mkinstalldirs) $(distdir)/. $(distdir)/m4
411         @list='$(DISTFILES)'; for file in $$list; do \
412           if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
413           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
414           if test "$$dir" != "$$file" && test "$$dir" != "."; then \
415             dir="/$$dir"; \
416             $(mkinstalldirs) "$(distdir)$$dir"; \
417           else \
418             dir=''; \
419           fi; \
420           if test -d $$d/$$file; then \
421             if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
422               cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
423             fi; \
424             cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
425           else \
426             test -f $(distdir)/$$file \
427             || cp -p $$d/$$file $(distdir)/$$file \
428             || exit 1; \
429           fi; \
430         done
431         list='$(SUBDIRS)'; for subdir in $$list; do \
432           if test "$$subdir" = .; then :; else \
433             test -d $(distdir)/$$subdir \
434             || mkdir $(distdir)/$$subdir \
435             || exit 1; \
436             (cd $$subdir && \
437               $(MAKE) $(AM_MAKEFLAGS) \
438                 top_distdir="$(top_distdir)" \
439                 distdir=../$(distdir)/$$subdir \
440                 distdir) \
441               || exit 1; \
442           fi; \
443         done
444         $(MAKE) $(AM_MAKEFLAGS) \
445           top_distdir="$(top_distdir)" distdir="$(distdir)" \
446           dist-info
447         -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
448           ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
449           ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
450           ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
451         || chmod -R a+r $(distdir)
452 dist-gzip: distdir
453         $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
454         $(am__remove_distdir)
455
456 dist-bzip2: distdir
457         $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
458         $(am__remove_distdir)
459
460 dist dist-all: distdir
461         $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
462         $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
463         $(am__remove_distdir)
464
465 # This target untars the dist file and tries a VPATH configuration.  Then
466 # it guarantees that the distribution is self-contained by making another
467 # tarfile.
468 distcheck: dist
469         $(am__remove_distdir)
470         GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
471         chmod -R a-w $(distdir); chmod a+w $(distdir)
472         mkdir $(distdir)/=build
473         mkdir $(distdir)/=inst
474         chmod a-w $(distdir)
475         dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \
476           && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
477           && cd $(distdir)/=build \
478           && ../configure --srcdir=.. --prefix="$$dc_install_base" \
479             $(DISTCHECK_CONFIGURE_FLAGS) \
480           && $(MAKE) $(AM_MAKEFLAGS) \
481           && $(MAKE) $(AM_MAKEFLAGS) dvi \
482           && $(MAKE) $(AM_MAKEFLAGS) check \
483           && $(MAKE) $(AM_MAKEFLAGS) install \
484           && $(MAKE) $(AM_MAKEFLAGS) installcheck \
485           && $(MAKE) $(AM_MAKEFLAGS) uninstall \
486           && (test `find "$$dc_install_base" -type f -print | wc -l` -le 1 \
487               || { echo "ERROR: files left after uninstall:" ; \
488                    find $$dc_install_base -type f -print ; \
489                    exit 1; } >&2 ) \
490           && chmod -R a-w "$$dc_install_base" \
491           && ({   $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
492                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
493                && (test `find "$$dc_destdir" -type f -print | wc -l` -le 1 \
494                    || { echo "ERROR: files left after uninstall (check DESTDIR support):" ; \
495                         find "$$dc_destdir" -type f -print ; \
496                         exit 1; } >&2 ) \
497               } || { rm -rf "$$dc_destdir"; exit 1; }) \
498           && rm -rf "$$dc_destdir" \
499           && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
500           && rm -f $(distdir).tar.gz \
501           && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
502         $(am__remove_distdir)
503         @echo "$(distdir).tar.gz is ready for distribution" | \
504           sed 'h;s/./=/g;p;x;p;x'
505 distcleancheck: distclean
506         if test '$(srcdir)' = . ; then \
507           echo "ERROR: distcleancheck can only run from a VPATH build" ; \
508           exit 1 ; \
509         fi
510         test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
511           || { echo "ERROR: files left after distclean:" ; \
512                $(distcleancheck_listfiles) ; \
513                exit 1; } >&2
514 check-am: all-am
515 check: check-recursive
516 all-am: Makefile $(INFO_DEPS) $(SCRIPTS)
517 installdirs: installdirs-recursive
518 installdirs-am:
519         $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(infodir)
520
521 install: install-recursive
522 install-exec: install-exec-recursive
523 install-data: install-data-recursive
524 uninstall: uninstall-recursive
525
526 install-am: all-am
527         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
528
529 installcheck: installcheck-recursive
530 install-strip:
531         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
532           INSTALL_STRIP_FLAG=-s \
533           `test -z '$(STRIP)' || \
534             echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
535 mostlyclean-generic:
536
537 clean-generic:
538
539 distclean-generic:
540         -rm -f Makefile $(CONFIG_CLEAN_FILES)
541
542 maintainer-clean-generic:
543         @echo "This command is intended for maintainers to use"
544         @echo "it deletes files that may require special tools to rebuild."
545 clean: clean-recursive
546
547 clean-am: clean-generic mostlyclean-am
548
549 distclean: distclean-recursive
550         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
551 distclean-am: clean-am distclean-generic distclean-tags
552
553 dvi: dvi-recursive
554
555 dvi-am: $(DVIS)
556
557 info: info-recursive
558
559 info-am: $(INFO_DEPS)
560
561 install-data-am: install-info-am
562
563 install-exec-am: install-binSCRIPTS
564         @$(NORMAL_INSTALL)
565         $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
566
567 install-info: install-info-recursive
568
569 install-info-am: $(INFO_DEPS)
570         @$(NORMAL_INSTALL)
571         $(mkinstalldirs) $(DESTDIR)$(infodir)
572         @list='$(INFO_DEPS)'; \
573         for file in $$list; do \
574           d=$(srcdir); \
575           for ifile in echo $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9]; do \
576             if test -f $$ifile; then \
577               relfile=`expr "$$ifile" : "$$d/\(.*\)"`; \
578               echo " $(INSTALL_DATA) $$ifile $(DESTDIR)$(infodir)/$$relfile"; \
579               $(INSTALL_DATA) $$ifile $(DESTDIR)$(infodir)/$$relfile; \
580             else : ; fi; \
581           done; \
582         done
583         @$(POST_INSTALL)
584         @if (install-info --version && \
585              install-info --version | grep -i -v debian) >/dev/null 2>&1; then \
586           list='$(INFO_DEPS)'; \
587           for file in $$list; do \
588             echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
589             install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
590           done; \
591         else : ; fi
592 install-man:
593
594 installcheck-am:
595
596 maintainer-clean: maintainer-clean-recursive
597         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
598         -rm -rf autom4te.cache
599 maintainer-clean-am: distclean-am maintainer-clean-aminfo \
600         maintainer-clean-generic maintainer-clean-vti
601
602 mostlyclean: mostlyclean-recursive
603
604 mostlyclean-am: mostlyclean-aminfo mostlyclean-generic mostlyclean-vti
605
606 pdf: pdf-recursive
607
608 pdf-am: $(PDFS)
609
610 ps: ps-recursive
611
612 ps-am: $(PSS)
613
614 uninstall-am: uninstall-binSCRIPTS uninstall-info-am
615         @$(NORMAL_INSTALL)
616         $(MAKE) $(AM_MAKEFLAGS) uninstall-hook
617
618 uninstall-info: uninstall-info-recursive
619
620 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
621         clean-generic clean-recursive ctags ctags-recursive dist \
622         dist-all dist-bzip2 dist-gzip dist-info distcheck distclean \
623         distclean-generic distclean-recursive distclean-tags \
624         distcleancheck distdir dvi dvi-am dvi-recursive info info-am \
625         info-recursive install install-am install-binSCRIPTS \
626         install-data install-data-am install-data-recursive \
627         install-exec install-exec-am install-exec-recursive \
628         install-info install-info-am install-info-recursive install-man \
629         install-recursive install-strip installcheck installcheck-am \
630         installdirs installdirs-am installdirs-recursive \
631         maintainer-clean maintainer-clean-aminfo \
632         maintainer-clean-generic maintainer-clean-recursive \
633         maintainer-clean-vti mostlyclean mostlyclean-aminfo \
634         mostlyclean-generic mostlyclean-recursive mostlyclean-vti pdf \
635         pdf-am pdf-recursive ps ps-am ps-recursive tags tags-recursive \
636         uninstall uninstall-am uninstall-binSCRIPTS uninstall-info-am \
637         uninstall-info-recursive uninstall-recursive
638
639
640 install-exec-hook:
641         @$(POST_INSTALL)
642         @for p in $(bin_SCRIPTS); do \
643           f="`echo $$p|sed '$(transform)'`"; \
644           fv="$$f-$(APIVERSION)"; \
645           rm -f $(DESTDIR)$(bindir)/$$fv; \
646           echo " $(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv"; \
647           $(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \
648         done
649
650 uninstall-hook:
651         @for p in $(bin_SCRIPTS); do \
652           f="`echo $$p|sed '$(transform)'`"; \
653           fv="$$f-$(APIVERSION)"; \
654           rm -f $(DESTDIR)$(bindir)/$$fv; \
655         done
656
657 ################################################################
658
659 # Some simple checks, and then ordinary check.  These are only really
660 # guaranteed to work on my machine.
661 maintainer-check: automake aclocal
662         @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 28; then \
663           echo "found too many diffs between automake.in and automake"; 1>&2; \
664           diff -c $(srcdir)/automake.in automake; \
665           exit 1; \
666         fi
667         perllibdir=$(srcdir)/lib $(PERL) -c -w automake
668         perllibdir=$(srcdir)/lib $(PERL) -c -w aclocal
669         @if grep -F '$${' $(srcdir)/lib/am/[a-z]*.am | \
670                grep -F -v '$$$$'; then \
671           echo "Found too many uses of '\$${' in the lines above." 1>&2; \
672           exit 1;                               \
673         else :; fi
674         @if grep -E '\<rm ([^-]|\-[^f ]*\>)' \
675                   $(srcdir)/lib/am/[a-z]*.am $(srcdir)/tests/*.test | \
676               grep -v '##'; then \
677           echo "Suspicious 'rm' invocation." 1>&2; \
678           exit 1;                               \
679         else :; fi
680         @if grep 'for .* in \$$(' $(srcdir)/lib/am/[a-z]*.am; then \
681           echo 'Use "list=$$(mumble); for var in $$$$list".' 1>&2 ; \
682           exit 1; \
683         else :; fi
684         @if grep -n 'mkinstalldirs' $(srcdir)/lib/am/[a-z]*.am | \
685               grep -F -v '$$(mkinstalldirs)'; then \
686           echo "Found incorrect use of mkinstalldirs in the lines above" 1>&2; \
687           exit 1; \
688         else :; fi
689         @if grep -n -w 'undef ' $(srcdir)/automake.in | \
690               grep -F -v 'undef $$/'; then \
691           echo "Found undef in automake.in; use delete instead" 1>&2; \
692           exit 1; \
693         fi
694         @if grep -n 'split (/ /' $(srcdir)/automake.in; then \
695           echo "Found bad split in the lines above." 1>&2; \
696           exit 1; \
697         fi
698         @if grep -n '^[^#]*` *cd ' $(srcdir)/automake.in \
699               $(srcdir)/lib/am/*.am; then \
700           echo "Consider using $$$$(am__cd) in the line above." 1>&2; \
701           exit 1; \
702         fi
703         @if grep -Hn '[^) ] *= *@_' $(srcdir)/automake.in; then \
704           echo "Using @_ in a scalar context in the lines above." 1>&2; \
705           exit 1; \
706         fi
707         @if grep '^[ \t]*local *(' $(srcdir)/automake.in; then \
708           echo "Don't use \`local' with parens: use several \`local' above." >&2; \
709           exit 1; \
710         fi
711         @locals=`grep -v '^[ \t]*local \$$_;' $(srcdir)/automake.in | \
712                 grep -c '^[ \t]*local [^*]'`; \
713         case $$locals in \
714           [0] ) \
715             echo "Wow, congrats!  There are no \`local' now!." >&2; \
716             echo "Please update Makefile.am (maintainer-check)." >&2; \
717             exit 1; \
718           ;; \
719           1 ) ;; \
720           * ) \
721             echo "Too many \`local'!  Are you sure you need $$locals of them?" >&2; \
722             echo "Up to now 1 was enough." >&2; \
723             exit 1; \
724           ;; \
725         esac
726         @if grep '@AMDEP''_TRUE@' $(srcdir)/automake.in; then \
727           echo "Don't put AMDEP_TRUE substitution in automake.in" 1>&2; \
728           exit 1; \
729         fi
730         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*make'; then \
731           echo 'Do not run "make" in the above tests.  Use "$$MAKE" instead.' 1>&2; \
732           exit 1; \
733         fi
734         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*autoconf'; then \
735           echo 'Do not run "autoconf" in the above tests.  Use "$$AUTOCONF" instead.' 1>&2; \
736           exit 1; \
737         fi
738         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*automake'; then \
739           echo 'Do not run "automake" in the above tests.  Use "$$AUTOMAKE" instead.' 1>&2;  \
740           exit 1; \
741         fi
742         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*aclocal'; then \
743           echo 'Do not run "aclocal" in the above tests.  Use "$$ACLOCAL" instead.' 1>&2;  \
744           exit 1; \
745         fi
746         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*perl'; then \
747           echo 'Do not run "perl" in the above tests.  Use "$$PERL" instead.' 1>&2; \
748           exit 1; \
749         fi
750         @if grep -E '\$$MAKE .*(SHELL=.*=|=.*SHELL=)' $(srcdir)/tests/*.test; then \
751           echo 'Rewrite "$$MAKE foo=bar SHELL=/bin/sh" as "foo=bar $$MAKE -e SHELL=/bin/sh"' 1>&2; \
752           echo ' in the above lines, it is more portable.' 1>&2; \
753           exit 1; \
754         fi
755         @if grep -v SHELL $(srcdir)/tests/*.test | grep '\$$MAKE .*=' ; then \
756           echo 'Rewrite "$$MAKE foo=bar" as "foo=bar $$MAKE -e SHELL=/bin/sh" in the above lines,' 1>&2; \
757           echo 'it is more portable.' 1>&2; \
758           exit 1; \
759         fi
760         @if grep '$$MAKE.* -e' $(srcdir)/tests/*.test | grep -v '-e.*SHELL' ; then \
761           echo 'Always overwrite SHELL when using "$$MAKE -e".' 1>&2; \
762           echo 'Use "$$MAKE -e SHELL=/bin/sh" in the above lines.' 1>&2; \
763           exit 1; \
764         fi
765         @if grep 'SHELL=.*\$$MAKE' $(srcdir)/tests/*.test; then \
766           echo '$$MAKE ignores the SHELL envvar, use "$$MAKE SHELL=/bin/sh" in' 1>&2; \
767           echo 'the above lines.' 1>&2; \
768           exit 1; \
769         fi
770         @if grep -E '\bsleep +1\b' $(srcdir)/tests/*.test; then \
771           echo 'Do not use "sleep 1" in the above tests.  Use "sleep 2" instead.' 1>&2; \
772           exit 1; \
773         fi
774         @if grep -E '\b[ef]grep\b' $(srcdir)/tests/*.test ; then \
775           echo 'Do not use egrep or fgrep in test cases.  Use $FGREP or $EGREP.' 1>&2; \
776           exit 1; \
777         fi
778         @if grep -E '\b[ef]grep\b' $(srcdir)/lib/am/*.am $(srcdir)/m4/*.m4; then \
779           echo 'Do not use egrep or fgrep in the above files, they are not portable.' 1>&2; \
780           exit 1; \
781         fi
782
783 # Tag before making distribution.  Also, don't make a distribution if
784 # checks fail.  Also, make sure the NEWS file is up-to-date.
785 cvs-dist: maintainer-check distcheck
786         @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
787           echo "NEWS not updated; not releasing" 1>&2; \
788           exit 1;                               \
789         fi
790         cd $(srcdir) && cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
791         $(MAKE) dist
792
793 cvs-diff:
794         thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
795         if test -z "$$OLDVERSION"; then \
796           prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
797         else prevno="$$OLDVERSION"; fi; \
798         prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
799         cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
800             > $(PACKAGE)-$$prevno-$(VERSION).diff
801
802 path-check: distdir
803         (cd $(distdir) && \
804           find . -print | xargs pathchk -p); \
805           status=$$?; \
806           chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir); \
807           exit $$status
808
809 fetch:
810         rm -rf Fetchdir > /dev/null 2>&1
811         mkdir Fetchdir; mkdir Fetchdir/Automake
812         (cd Fetchdir && \
813         $(WGET) ftp://ftp.gnu.org/gnu/config/config.guess; \
814         $(WGET) ftp://ftp.gnu.org/gnu/config/config.sub; \
815         $(WGET) ftp://ftp.gnu.org/gnu/texinfo/texinfo.tex; \
816         $(WGET) http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/autoconf/autoconf/lib/Autom4te/XFile.pm?content-type=text/plain -O Automake/XFile.pm; \
817         $(WGET) http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/autoconf/autoconf/config/install-sh?content-type=text/plain -O install-sh; \
818         $(WGET) http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/autoconf/autoconf/INSTALL?content-type=text/plain -O INSTALL)
819         perl -pi -e 's/Autom4te::/Automake::/g' Fetchdir/Automake/XFile.pm
820         @stat=0; for file in $(FETCHFILES); do \
821           if diff -u $(srcdir)/lib/$$file Fetchdir/$$file \
822                   >>Fetchdir/update.patch 2>/dev/null; then :; \
823           else \
824             stat=1; \
825             echo "Updating $(srcdir)/lib/$$file..."; \
826             cp Fetchdir/$$file $(srcdir)/lib/$$file; \
827           fi; \
828         done; \
829         test $$stat = 1 && \
830           echo "See Fetchdir/update.patch for a log of the changes."; \
831         exit $$stat
832 # Tell versions [3.59,3.63) of GNU make to not export all variables.
833 # Otherwise a system limit (for SysV at least) may be exceeded.
834 .NOEXPORT: