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