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