* doc/automake.texi (Complete, Extending aclocal, Public macros)
[platform/upstream/automake.git] / Makefile.in
1 # Makefile.in generated by automake 1.9a from Makefile.am.
2 # @configure_input@
3
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006  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 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 subdir = .
35 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
36         $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
37         ChangeLog INSTALL NEWS THANKS TODO
38 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39 am__aclocal_m4_deps = $(top_srcdir)/m4/amversion.m4 \
40         $(top_srcdir)/m4/auxdir.m4 $(top_srcdir)/m4/init.m4 \
41         $(top_srcdir)/m4/install-sh.m4 $(top_srcdir)/m4/lead-dot.m4 \
42         $(top_srcdir)/m4/missing.m4 $(top_srcdir)/m4/mkdirp.m4 \
43         $(top_srcdir)/m4/options.m4 $(top_srcdir)/m4/runlog.m4 \
44         $(top_srcdir)/m4/sanity.m4 $(top_srcdir)/m4/strip.m4 \
45         $(top_srcdir)/m4/tar.m4 $(top_srcdir)/configure.ac
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47         $(ACLOCAL_M4)
48 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
49  configure.lineno configure.status.lineno
50 mkinstalldirs = $(SHELL) $(top_srcdir)/lib/mkinstalldirs
51 CONFIG_CLEAN_FILES =
52 am__installdirs = "$(DESTDIR)$(bindir)"
53 binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
54 SCRIPTS = $(bin_SCRIPTS)
55 SOURCES =
56 DIST_SOURCES =
57 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
58         html-recursive info-recursive install-data-recursive \
59         install-dvi-recursive install-exec-recursive \
60         install-html-recursive install-info-recursive \
61         install-pdf-recursive install-ps-recursive install-recursive \
62         installcheck-recursive installdirs-recursive pdf-recursive \
63         ps-recursive uninstall-recursive
64 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
65   distclean-recursive maintainer-clean-recursive
66 ETAGS = etags
67 CTAGS = ctags
68 DIST_SUBDIRS = $(SUBDIRS)
69 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
70 distdir = $(PACKAGE)-$(VERSION)
71 top_distdir = $(distdir)
72 am__remove_distdir = \
73   { test ! -d $(distdir) \
74     || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
75          && rm -fr $(distdir); }; }
76 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
77 GZIP_ENV = --best
78 distuninstallcheck_listfiles = find . -type f -print
79 distcleancheck_listfiles = find . -type f -print
80 ACLOCAL = @ACLOCAL@
81 AMTAR = @AMTAR@
82 APIVERSION = @APIVERSION@
83 AUTOCONF = @AUTOCONF@
84 AUTOHEADER = @AUTOHEADER@
85 AUTOMAKE = @AUTOMAKE@
86 AWK = @AWK@
87 CYGPATH_W = @CYGPATH_W@
88 DEFS = @DEFS@
89 ECHO_C = @ECHO_C@
90 ECHO_N = @ECHO_N@
91 ECHO_T = @ECHO_T@
92 EGREP = @EGREP@
93 FGREP = @FGREP@
94 GREP = @GREP@
95 INSTALL = @INSTALL@
96 INSTALL_DATA = @INSTALL_DATA@
97 INSTALL_PROGRAM = @INSTALL_PROGRAM@
98 INSTALL_SCRIPT = @INSTALL_SCRIPT@
99 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LN = @LN@
103 LTLIBOBJS = @LTLIBOBJS@
104 MAKEINFO = @MAKEINFO@
105 MODIFICATION_DELAY = @MODIFICATION_DELAY@
106 PACKAGE = @PACKAGE@
107 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
108 PACKAGE_NAME = @PACKAGE_NAME@
109 PACKAGE_STRING = @PACKAGE_STRING@
110 PACKAGE_TARNAME = @PACKAGE_TARNAME@
111 PACKAGE_VERSION = @PACKAGE_VERSION@
112 PATH_SEPARATOR = @PATH_SEPARATOR@
113 PERL = @PERL@
114 SET_MAKE = @SET_MAKE@
115 SHELL = @SHELL@
116 STRIP = @STRIP@
117 TEX = @TEX@
118 VERSION = @VERSION@
119 abs_builddir = @abs_builddir@
120 abs_srcdir = @abs_srcdir@
121 abs_top_builddir = @abs_top_builddir@
122 abs_top_srcdir = @abs_top_srcdir@
123 am_AUTOCONF = @am_AUTOCONF@
124 am__leading_dot = @am__leading_dot@
125 am__tar = @am__tar@
126 am__untar = @am__untar@
127 bindir = @bindir@
128 build = @build@
129 build_alias = @build_alias@
130 build_cpu = @build_cpu@
131 build_os = @build_os@
132 build_vendor = @build_vendor@
133 builddir = @builddir@
134 datadir = @datadir@
135 datarootdir = @datarootdir@
136 docdir = @docdir@
137 dvidir = @dvidir@
138 exec_prefix = @exec_prefix@
139 host_alias = @host_alias@
140 htmldir = @htmldir@
141 includedir = @includedir@
142 infodir = @infodir@
143 install_sh = @install_sh@
144 libdir = @libdir@
145 libexecdir = @libexecdir@
146 localedir = @localedir@
147 localstatedir = @localstatedir@
148 mandir = @mandir@
149 mkdir_p = @mkdir_p@
150 oldincludedir = @oldincludedir@
151 pdfdir = @pdfdir@
152 pkgvdatadir = @pkgvdatadir@
153 prefix = @prefix@
154 program_transform_name = @program_transform_name@
155 psdir = @psdir@
156 sbindir = @sbindir@
157 sharedstatedir = @sharedstatedir@
158 srcdir = @srcdir@
159 sysconfdir = @sysconfdir@
160 target_alias = @target_alias@
161 top_builddir = @top_builddir@
162 top_srcdir = @top_srcdir@
163 SUBDIRS = . doc m4 lib tests
164 bin_SCRIPTS = automake aclocal
165 CLEANFILES = $(bin_SCRIPTS)
166 AUTOMAKESOURCES = automake.in aclocal.in
167 TAGS_FILES = $(AUTOMAKESOURCES)
168 EXTRA_DIST = \
169   ChangeLog.96 \
170   ChangeLog.98 \
171   ChangeLog.00 \
172   ChangeLog.01 \
173   ChangeLog.02 \
174   ChangeLog.03 \
175   ChangeLog.04 \
176   $(AUTOMAKESOURCES)
177
178 do_subst = sed \
179   -e 's,[@]APIVERSION[@],$(APIVERSION),g' \
180   -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
181   -e 's,[@]PATH_SEPARATOR[@],$(PATH_SEPARATOR),g' \
182   -e 's,[@]PERL[@],$(PERL),g' \
183   -e 's,[@]SHELL[@],$(SHELL),g' \
184   -e 's,[@]VERSION[@],$(VERSION),g' \
185   -e 's,[@]configure_input[@],Generated from $@.in; do not edit by hand.,g' \
186   -e 's,[@]datadir[@],$(datadir),g'
187
188 WGET = wget
189 WGETSGO = $(WGET) http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~
190 FETCHFILES = \
191 INSTALL \
192 config-ml.in \
193 config.guess \
194 config.sub \
195 symlink-tree \
196 texinfo.tex
197
198 all: all-recursive
199
200 .SUFFIXES:
201 am--refresh:
202         @:
203 $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
204         @for dep in $?; do \
205           case '$(am__configure_deps)' in \
206             *$$dep*) \
207               echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
208               cd $(srcdir) && $(AUTOMAKE) --gnu  \
209                 && exit 0; \
210               exit 1;; \
211           esac; \
212         done; \
213         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  Makefile'; \
214         cd $(top_srcdir) && \
215           $(AUTOMAKE) --gnu  Makefile
216 .PRECIOUS: Makefile
217 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
218         @case '$?' in \
219           *config.status*) \
220             echo ' $(SHELL) ./config.status'; \
221             $(SHELL) ./config.status;; \
222           *) \
223             echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
224             cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
225         esac;
226
227 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
228         $(SHELL) ./config.status --recheck
229
230 $(top_srcdir)/configure:  $(am__configure_deps)
231         cd $(srcdir) && $(AUTOCONF)
232 $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
233         cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
234 install-binSCRIPTS: $(bin_SCRIPTS)
235         @$(NORMAL_INSTALL)
236         test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
237         @list='$(bin_SCRIPTS)'; for p in $$list; do \
238           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
239           if test -f $$d$$p; then \
240             f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
241             echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
242             $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
243           else :; fi; \
244         done
245
246 uninstall-binSCRIPTS:
247         @$(NORMAL_UNINSTALL)
248         @list='$(bin_SCRIPTS)'; for p in $$list; do \
249           f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
250           echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
251           rm -f "$(DESTDIR)$(bindir)/$$f"; \
252         done
253
254 # This directory's subdirectories are mostly independent; you can cd
255 # into them and run `make' without going through this Makefile.
256 # To change the values of `make' variables: instead of editing Makefiles,
257 # (1) if the variable is set in `config.status', edit `config.status'
258 #     (which will cause the Makefiles to be regenerated when you run `make');
259 # (2) otherwise, pass the desired values on the `make' command line.
260 $(RECURSIVE_TARGETS):
261         @failcom='exit 1'; \
262         for f in x $$MAKEFLAGS; do \
263           case $$f in \
264             *=* | --[!k]*);; \
265             *k*) failcom='fail=yes';; \
266           esac; \
267         done; \
268         dot_seen=no; \
269         target=`echo $@ | sed s/-recursive//`; \
270         list='$(SUBDIRS)'; for subdir in $$list; do \
271           echo "Making $$target in $$subdir"; \
272           if test "$$subdir" = "."; then \
273             dot_seen=yes; \
274             local_target="$$target-am"; \
275           else \
276             local_target="$$target"; \
277           fi; \
278           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
279           || eval $$failcom; \
280         done; \
281         if test "$$dot_seen" = "no"; then \
282           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
283         fi; test -z "$$fail"
284
285 $(RECURSIVE_CLEAN_TARGETS):
286         @failcom='exit 1'; \
287         for f in x $$MAKEFLAGS; do \
288           case $$f in \
289             *=* | --[!k]*);; \
290             *k*) failcom='fail=yes';; \
291           esac; \
292         done; \
293         dot_seen=no; \
294         case "$@" in \
295           distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
296           *) list='$(SUBDIRS)' ;; \
297         esac; \
298         rev=''; for subdir in $$list; do \
299           if test "$$subdir" = "."; then :; else \
300             rev="$$subdir $$rev"; \
301           fi; \
302         done; \
303         rev="$$rev ."; \
304         target=`echo $@ | sed s/-recursive//`; \
305         for subdir in $$rev; do \
306           echo "Making $$target in $$subdir"; \
307           if test "$$subdir" = "."; then \
308             local_target="$$target-am"; \
309           else \
310             local_target="$$target"; \
311           fi; \
312           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
313           || eval $$failcom; \
314         done && test -z "$$fail"
315 tags-recursive:
316         list='$(SUBDIRS)'; for subdir in $$list; do \
317           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
318         done
319 ctags-recursive:
320         list='$(SUBDIRS)'; for subdir in $$list; do \
321           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
322         done
323
324 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
325         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
326         unique=`for i in $$list; do \
327             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
328           done | \
329           $(AWK) '    { files[$$0] = 1; } \
330                END { for (i in files) print i; }'`; \
331         mkid -fID $$unique
332 tags: TAGS
333
334 TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
335                 $(TAGS_FILES) $(LISP)
336         tags=; \
337         here=`pwd`; \
338         if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
339           include_option=--etags-include; \
340           empty_fix=.; \
341         else \
342           include_option=--include; \
343           empty_fix=; \
344         fi; \
345         list='$(SUBDIRS)'; for subdir in $$list; do \
346           if test "$$subdir" = .; then :; else \
347             test ! -f $$subdir/TAGS || \
348               tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
349           fi; \
350         done; \
351         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
352         unique=`for i in $$list; do \
353             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
354           done | \
355           $(AWK) '    { files[$$0] = 1; } \
356                END { for (i in files) print i; }'`; \
357         if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
358           test -n "$$unique" || unique=$$empty_fix; \
359           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
360             $$tags $$unique; \
361         fi
362 ctags: CTAGS
363 CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
364                 $(TAGS_FILES) $(LISP)
365         tags=; \
366         here=`pwd`; \
367         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
368         unique=`for i in $$list; do \
369             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
370           done | \
371           $(AWK) '    { files[$$0] = 1; } \
372                END { for (i in files) print i; }'`; \
373         test -z "$(CTAGS_ARGS)$$tags$$unique" \
374           || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
375              $$tags $$unique
376
377 GTAGS:
378         here=`$(am__cd) $(top_builddir) && pwd` \
379           && cd $(top_srcdir) \
380           && gtags -i $(GTAGS_ARGS) $$here
381
382 distclean-tags:
383         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
384
385 distdir: $(DISTFILES)
386         $(am__remove_distdir)
387         mkdir $(distdir)
388         $(mkdir_p) $(distdir)/m4 $(distdir)/tests
389         @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
390         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
391         list='$(DISTFILES)'; for file in $$list; do \
392           case $$file in \
393             $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
394             $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
395           esac; \
396           if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
397           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
398           if test "$$dir" != "$$file" && test "$$dir" != "."; then \
399             dir="/$$dir"; \
400             $(mkdir_p) "$(distdir)$$dir"; \
401           else \
402             dir=''; \
403           fi; \
404           if test -d $$d/$$file; then \
405             if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406               cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
407             fi; \
408             cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409           else \
410             test -f $(distdir)/$$file \
411             || cp -p $$d/$$file $(distdir)/$$file \
412             || exit 1; \
413           fi; \
414         done
415         list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
416           if test "$$subdir" = .; then :; else \
417             test -d "$(distdir)/$$subdir" \
418             || $(mkdir_p) "$(distdir)/$$subdir" \
419             || exit 1; \
420             distdir=`$(am__cd) $(distdir) && pwd`; \
421             top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
422             (cd $$subdir && \
423               $(MAKE) $(AM_MAKEFLAGS) \
424                 top_distdir="$$top_distdir" \
425                 distdir="$$distdir/$$subdir" \
426                 distdir) \
427               || exit 1; \
428           fi; \
429         done
430         -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
431           ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
432           ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
433           ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
434         || chmod -R a+r $(distdir)
435         @if find $(distdir) -type f -print | \
436           grep '^...................................................................................................' 1>&2; then \
437           echo 'error: the above filenames are too long' 1>&2; \
438           exit 1; \
439         else :; fi
440 dist-gzip: distdir
441         tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
442         $(am__remove_distdir)
443 dist-bzip2: distdir
444         tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
445         $(am__remove_distdir)
446
447 dist-tarZ: distdir
448         tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
449         $(am__remove_distdir)
450
451 dist-shar: distdir
452         shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
453         $(am__remove_distdir)
454
455 dist-zip: distdir
456         -rm -f $(distdir).zip
457         zip -rq $(distdir).zip $(distdir)
458         $(am__remove_distdir)
459
460 dist dist-all: distdir
461         tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
462         tardir=$(distdir) && $(am__tar) | 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         case '$(DIST_ARCHIVES)' in \
470         *.tar.gz*) \
471           GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
472         *.tar.bz2*) \
473           bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
474         *.tar.Z*) \
475           uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
476         *.shar.gz*) \
477           GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
478         *.zip*) \
479           unzip $(distdir).zip ;;\
480         esac
481         chmod -R a-w $(distdir); chmod a+w $(distdir)
482         mkdir $(distdir)/_build
483         mkdir $(distdir)/_inst
484         chmod a-w $(distdir)
485         dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
486           && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
487           && cd $(distdir)/_build \
488           && ../configure --srcdir=.. --prefix="$$dc_install_base" \
489             $(DISTCHECK_CONFIGURE_FLAGS) \
490           && $(MAKE) $(AM_MAKEFLAGS) \
491           && $(MAKE) $(AM_MAKEFLAGS) dvi \
492           && $(MAKE) $(AM_MAKEFLAGS) check \
493           && $(MAKE) $(AM_MAKEFLAGS) install \
494           && $(MAKE) $(AM_MAKEFLAGS) installcheck \
495           && $(MAKE) $(AM_MAKEFLAGS) uninstall \
496           && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
497                 distuninstallcheck \
498           && chmod -R a-w "$$dc_install_base" \
499           && ({ \
500                (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
501                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
502                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
503                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
504                     distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
505               } || { rm -rf "$$dc_destdir"; exit 1; }) \
506           && rm -rf "$$dc_destdir" \
507           && $(MAKE) $(AM_MAKEFLAGS) dist \
508           && rm -rf $(DIST_ARCHIVES) \
509           && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
510         $(am__remove_distdir)
511         @(echo "$(distdir) archives ready for distribution: "; \
512           list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
513           sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
514 distuninstallcheck:
515         @cd $(distuninstallcheck_dir) \
516         && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
517            || { echo "ERROR: files left after uninstall:" ; \
518                 if test -n "$(DESTDIR)"; then \
519                   echo "  (check DESTDIR support)"; \
520                 fi ; \
521                 $(distuninstallcheck_listfiles) ; \
522                 exit 1; } >&2
523 distcleancheck: distclean
524         @if test '$(srcdir)' = . ; then \
525           echo "ERROR: distcleancheck can only run from a VPATH build" ; \
526           exit 1 ; \
527         fi
528         @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
529           || { echo "ERROR: files left in build directory after distclean:" ; \
530                $(distcleancheck_listfiles) ; \
531                exit 1; } >&2
532 check-am: all-am
533 check: check-recursive
534 all-am: Makefile $(SCRIPTS)
535 installdirs: installdirs-recursive
536 installdirs-am:
537         for dir in "$(DESTDIR)$(bindir)"; do \
538           test -z "$$dir" || $(mkdir_p) "$$dir"; \
539         done
540 install: install-recursive
541 install-exec: install-exec-recursive
542 install-data: install-data-recursive
543 uninstall: uninstall-recursive
544
545 install-am: all-am
546         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
547
548 installcheck: installcheck-recursive
549 install-strip:
550         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
551           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
552           `test -z '$(STRIP)' || \
553             echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
554 mostlyclean-generic:
555
556 clean-generic:
557         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
558
559 distclean-generic:
560         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
561
562 maintainer-clean-generic:
563         @echo "This command is intended for maintainers to use"
564         @echo "it deletes files that may require special tools to rebuild."
565 clean: clean-recursive
566
567 clean-am: clean-generic mostlyclean-am
568
569 distclean: distclean-recursive
570         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
571         -rm -f Makefile
572 distclean-am: clean-am distclean-generic distclean-tags
573
574 dvi: dvi-recursive
575
576 dvi-am:
577
578 html: html-recursive
579
580 info: info-recursive
581
582 info-am:
583
584 install-data-am:
585
586 install-dvi: install-dvi-recursive
587
588 install-exec-am: install-binSCRIPTS
589         @$(NORMAL_INSTALL)
590         $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
591
592 install-html: install-html-recursive
593
594 install-info: install-info-recursive
595
596 install-man:
597
598 install-pdf: install-pdf-recursive
599
600 install-ps: install-ps-recursive
601
602 installcheck-am:
603
604 maintainer-clean: maintainer-clean-recursive
605         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
606         -rm -rf $(top_srcdir)/autom4te.cache
607         -rm -f Makefile
608 maintainer-clean-am: distclean-am maintainer-clean-generic
609
610 mostlyclean: mostlyclean-recursive
611
612 mostlyclean-am: mostlyclean-generic
613
614 pdf: pdf-recursive
615
616 pdf-am:
617
618 ps: ps-recursive
619
620 ps-am:
621
622 uninstall-am: uninstall-binSCRIPTS
623         @$(NORMAL_INSTALL)
624         $(MAKE) $(AM_MAKEFLAGS) uninstall-hook
625
626 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
627         install-exec-am install-strip uninstall-am
628
629 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
630         all all-am am--refresh check check-am clean clean-generic \
631         ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
632         dist-shar dist-tarZ dist-zip distcheck distclean \
633         distclean-generic distclean-tags distcleancheck distdir \
634         distuninstallcheck dvi dvi-am html html-am info info-am \
635         install install-am install-binSCRIPTS install-data \
636         install-data-am install-dvi install-dvi-am install-exec \
637         install-exec-am install-exec-hook install-html install-html-am \
638         install-info install-info-am install-man install-pdf \
639         install-pdf-am install-ps install-ps-am install-strip \
640         installcheck installcheck-am installdirs installdirs-am \
641         maintainer-clean maintainer-clean-generic mostlyclean \
642         mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \
643         uninstall uninstall-am uninstall-binSCRIPTS uninstall-hook
644
645
646 install-exec-hook:
647         @$(POST_INSTALL)
648         @for p in $(bin_SCRIPTS); do \
649           f="`echo $$p|sed '$(transform)'`"; \
650           fv="$$f-$(APIVERSION)"; \
651           rm -f $(DESTDIR)$(bindir)/$$fv; \
652           echo " $(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv"; \
653           $(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \
654         done
655
656 uninstall-hook:
657         @for p in $(bin_SCRIPTS); do \
658           f="`echo $$p|sed '$(transform)'`"; \
659           fv="$$f-$(APIVERSION)"; \
660           rm -f $(DESTDIR)$(bindir)/$$fv; \
661         done
662
663 automake: automake.in
664 aclocal: aclocal.in
665 automake aclocal: Makefile
666         rm -f $@ $@.tmp
667         $(do_subst) $(srcdir)/$@.in >$@.tmp
668         chmod +x $@.tmp
669         chmod a-w $@.tmp
670         mv -f $@.tmp $@
671
672 INSTALL: lib/INSTALL
673         cp $(srcdir)/lib/INSTALL $@
674
675 ################################################################
676
677 # Some simple checks, and then ordinary check.  These are only really
678 # guaranteed to work on my machine.
679 maintainer-check: automake aclocal
680         @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 22; then \
681           echo "found too many diffs between automake.in and automake"; 1>&2; \
682           diff -c $(srcdir)/automake.in automake; \
683           exit 1; \
684         fi
685         perllibdir="./lib$(PATH_SEPARATOR)$(srcdir)/lib" $(PERL) -c -w automake
686         perllibdir="./lib$(PATH_SEPARATOR)$(srcdir)/lib" $(PERL) -c -w aclocal
687         @if grep -F '$${' $(srcdir)/lib/am/[a-z]*.am | \
688                grep -F -v '$$$$'; then \
689           echo "Found too many uses of '\$${' in the lines above." 1>&2; \
690           exit 1;                               \
691         else :; fi
692         @if grep -v '^#' $(srcdir)/lib/am/[a-z]*.am $(srcdir)/tests/*.test | \
693             grep -E '\<rm ([^-]|\-[^f ]*\>)'; then \
694           echo "Suspicious 'rm' invocation." 1>&2; \
695           exit 1;                               \
696         else :; fi
697         @if grep 'for .* in \$$(' $(srcdir)/lib/am/[a-z]*.am; then \
698           echo 'Use "list=$$(mumble); for var in $$$$list".' 1>&2 ; \
699           exit 1; \
700         else :; fi
701         @if grep -n 'mkinstalldirs' $(srcdir)/lib/am/[a-z]*.am | \
702               grep -F -v '$$(mkinstalldirs)'; then \
703           echo "Found incorrect use of mkinstalldirs in the lines above" 1>&2; \
704           exit 1; \
705         else :; fi
706         @if grep -E -n '\((PRE|NORMAL|POST)_(|UN)INSTALL\)' \
707                  $(srcdir)/lib/am/[a-z]*.am | \
708               grep -v ':##' | grep -v ':        @\$$('; then \
709           echo "Found incorrect use of PRE/NORMAL/POST_INSTALL/UNINSTALL in the lines above" 1>&2; \
710           exit 1; \
711         else :; fi
712         @if grep -n -w 'undef ' $(srcdir)/automake.in | \
713               grep -F -v 'undef $$/'; then \
714           echo "Found undef in automake.in; use delete instead" 1>&2; \
715           exit 1; \
716         fi
717         @if grep -n 'split (/ /' $(srcdir)/automake.in; then \
718           echo "Found bad split in the lines above." 1>&2; \
719           exit 1; \
720         fi
721         @if grep -n '^[^#]*` *cd ' $(srcdir)/automake.in \
722               $(srcdir)/lib/am/*.am; then \
723           echo "Consider using $$$$(am__cd) in the line above." 1>&2; \
724           exit 1; \
725         fi
726         @if grep -Hn '[^@_A-Za-z0-9][_A-Za-z0-9]*[^) ] *= *@_' $(srcdir)/automake.in; then \
727           echo "Using @_ in a scalar context in the lines above." 1>&2; \
728           exit 1; \
729         fi
730         @if grep '^[ \t]*local *(' $(srcdir)/automake.in; then \
731           echo "Don't use \`local' with parens: use several \`local' above." >&2; \
732           exit 1; \
733         fi
734         @if grep -v '^[ \t]*local \$$_;' $(srcdir)/automake.in | \
735                 grep '^[ \t]*local [^*]'; then \
736           echo "Please avoid \`local'." 1>&2; \
737           exit 1; \
738         fi
739         @if grep '@AMDEP''_TRUE@' $(srcdir)/automake.in; then \
740           echo "Don't put AMDEP_TRUE substitution in automake.in" 1>&2; \
741           exit 1; \
742         fi
743         @if grep '^[^#].*(MAKE) ' $(srcdir)/lib/am/*.am $(srcdir)/automake.in |\
744                 grep -v 'AM_MAKEFLAGS'; then \
745           echo 'Use $$(MAKE) $$(AM_MAKEFLAGS).' 1>&2; \
746           exit 1; \
747         fi
748         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*make'; then \
749           echo 'Do not run "make" in the above tests.  Use "$$MAKE" instead.' 1>&2; \
750           exit 1; \
751         fi
752         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*autoconf'; then \
753           echo 'Do not run "autoconf" in the above tests.  Use "$$AUTOCONF" instead.' 1>&2; \
754           exit 1; \
755         fi
756         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*autoupdate'; then \
757           echo 'Do not run "autoupdate" in the above tests.  Use "$$AUTOUPDATE" instead.' 1>&2; \
758           exit 1; \
759         fi
760         @if grep -v '^#' $(srcdir)/tests/*.test | grep -E ':[   ]*automake([^:]|$$)'; then \
761           echo 'Do not run "automake" in the above tests.  Use "$$AUTOMAKE" instead.' 1>&2;  \
762           exit 1; \
763         fi
764         @if grep -v '^#' $(srcdir)/tests/*.test | grep '\$$AUTOMAKE.*&&.*exit'; then \
765           echo 'Use AUTOMAKE_fails + grep to catch automake failures in the above tests.' 1>&2;  \
766           exit 1; \
767         fi
768         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*aclocal'; then \
769           echo 'Do not run "aclocal" in the above tests.  Use "$$ACLOCAL" instead.' 1>&2;  \
770           exit 1; \
771         fi
772         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*perl'; then \
773           echo 'Do not run "perl" in the above tests.  Use "$$PERL" instead.' 1>&2; \
774           exit 1; \
775         fi
776         @if grep -E '\$$MAKE .*(SHELL=.*=|=.*SHELL=)' $(srcdir)/tests/*.test; then \
777           echo 'Rewrite "$$MAKE foo=bar SHELL=$$SHELL" as "foo=bar $$MAKE -e SHELL=$$SHELL"' 1>&2; \
778           echo ' in the above lines, it is more portable.' 1>&2; \
779           exit 1; \
780         fi
781         @if grep -v SHELL $(srcdir)/tests/*.test | grep '\$$MAKE .*=' ; then \
782           echo 'Rewrite "$$MAKE foo=bar" as "foo=bar $$MAKE -e" in the above lines,' 1>&2; \
783           echo 'it is more portable.' 1>&2; \
784           exit 1; \
785         fi
786         @if grep 'SHELL=.*\$$MAKE' $(srcdir)/tests/*.test; then \
787           echo '$$MAKE ignores the SHELL envvar, use "$$MAKE SHELL=$$SHELL" in' 1>&2; \
788           echo 'the above lines.' 1>&2; \
789           exit 1; \
790         fi
791         @if grep -E '\bsleep +[12345]\b' $(srcdir)/tests/*.test; then \
792           echo 'Do not use "sleep x" in the above tests.  Use "$$sleep" instead.' 1>&2; \
793           exit 1; \
794         fi
795         @if grep -E '\b[ef]grep\b' $(srcdir)/tests/*.test ; then \
796           echo 'Do not use egrep or fgrep in test cases.  Use $$FGREP or $$EGREP.' 1>&2; \
797           exit 1; \
798         fi
799         @if grep -E '\b[ef]grep\b' $(srcdir)/lib/am/*.am $(srcdir)/m4/*.m4; then \
800           echo 'Do not use egrep or fgrep in the above files, they are not portable.' 1>&2; \
801           exit 1; \
802         fi
803         @if test `grep -E '^[^#]*@[A-Za-z_0-9]+@' aclocal | wc -l` -ne 0; then \
804           echo "Unresolved @...@ substitution in aclocal" 1>&2; \
805           exit 1; \
806         fi
807         @if test `grep -E '^[^#]*@[A-Za-z_0-9]+@' automake | wc -l` -ne 0; then \
808           echo "Unresolved @...@ substitution in automake" 1>&2; \
809           exit 1; \
810         fi; \
811         if grep -E "[^\'\"]\\\$$\(DESTDIR" $(srcdir)/lib/am/*.am; then \
812           echo 'Suspicious unquoted DESTDIR uses.' 1>&2 ; \
813           exit 1; \
814         fi
815         @if grep '      ' $(srcdir)/doc/automake.texi; then \
816           echo 'Do not use tabs in the manual.' 1>&2; \
817           exit 1; \
818         fi
819         @if grep -E '([^@]|^)@([         ]|$$)' $(srcdir)/doc/automake.texi; \
820         then \
821           echo 'Unescaped @.' 1>&2; \
822           exit 1; \
823         fi
824
825 cvs-dist: maintainer-check
826         @if (clcommit --version)>/dev/null 2>/dev/null; then :; else \
827           echo "Get clcommit from module cvs-utils on Savannah."; \
828           exit 1; \
829         fi
830         @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
831           echo "NEWS not updated; not releasing" 1>&2; \
832           exit 1;                               \
833         fi
834         $(MAKE) distcheck
835         cd $(srcdir) && clcommit && \
836           cvs -q tag -c `echo "Release-$(VERSION)" | sed 's/\./-/g'`
837
838 cvs-release: cvs-dist
839         case $(VERSION) in \
840           *[a-z]) dest=alpha;; \
841           *)      dest=ftp;; \
842         esac; \
843         $(srcdir)/lib/gnupload $(GNUPLOADFLAGS) \
844           --to sources.redhat.com:~ftp/pub/automake \
845           --to $$dest.gnu.org:automake $(DIST_ARCHIVES)
846
847 cvs-diff:
848         thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
849         if test -z "$$OLDVERSION"; then \
850           prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
851         else prevno="$$OLDVERSION"; fi; \
852         prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
853         cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
854             > $(PACKAGE)-$$prevno-$(VERSION).diff
855
856 path-check: distdir
857         (cd $(distdir) && \
858           find . -print | xargs pathchk -p); \
859           status=$$?; \
860           chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir); \
861           exit $$status
862
863 fetch:
864         rm -rf Fetchdir > /dev/null 2>&1
865         mkdir Fetchdir
866         (cd Fetchdir && \
867         $(WGETSGO)/config/config/config.guess; \
868         $(WGETSGO)/config/config/config.sub; \
869         $(WGETSGO)/texinfo/texinfo/doc/texinfo.tex; \
870         $(WGETSGO)/autoconf/autoconf/INSTALL; \
871         $(WGETSGO)/gcc/gcc/config-ml.in; \
872         $(WGETSGO)/gcc/gcc/symlink-tree)
873         @stat=0; for file in $(FETCHFILES); do \
874           if diff -u $(srcdir)/lib/$$file Fetchdir/$$file \
875                   >>Fetchdir/update.patch 2>/dev/null; then :; \
876           else \
877             stat=1; \
878             echo "Updating $(srcdir)/lib/$$file..."; \
879             cp Fetchdir/$$file $(srcdir)/lib/$$file; \
880           fi; \
881         done; \
882         test $$stat = 0 || \
883           echo "See Fetchdir/update.patch for a log of the changes."; \
884         exit $$stat
885 # Tell versions [3.59,3.63) of GNU make to not export all variables.
886 # Otherwise a system limit (for SysV at least) may be exceeded.
887 .NOEXPORT: