* automake.in (&do_one_merge_target): Remove, was only called from...
[platform/upstream/automake.git] / Makefile.in
1 # Makefile.in generated automatically by automake 1.4e from Makefile.am.
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4 # Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 SHELL = @SHELL@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 prefix = @prefix@
20 exec_prefix = @exec_prefix@
21
22 bindir = @bindir@
23 sbindir = @sbindir@
24 libexecdir = @libexecdir@
25 datadir = @datadir@
26 sysconfdir = @sysconfdir@
27 sharedstatedir = @sharedstatedir@
28 localstatedir = @localstatedir@
29 libdir = @libdir@
30 infodir = @infodir@
31 mandir = @mandir@
32 includedir = @includedir@
33 oldincludedir = /usr/include
34
35 pkgdatadir = $(datadir)/@PACKAGE@
36 pkglibdir = $(libdir)/@PACKAGE@
37 pkgincludedir = $(includedir)/@PACKAGE@
38
39 top_builddir = .
40
41 ACLOCAL = @ACLOCAL@
42 AUTOCONF = @AUTOCONF@
43 AUTOMAKE = @AUTOMAKE@
44 AUTOHEADER = @AUTOHEADER@
45
46 INSTALL = @INSTALL@
47 INSTALL_PROGRAM = @INSTALL_PROGRAM@
48 INSTALL_DATA = @INSTALL_DATA@
49 INSTALL_SCRIPT = @INSTALL_SCRIPT@
50 INSTALL_HEADER = $(INSTALL_DATA)
51 transform = @program_transform_name@
52
53 NORMAL_INSTALL = :
54 PRE_INSTALL = :
55 POST_INSTALL = :
56 NORMAL_UNINSTALL = :
57 PRE_UNINSTALL = :
58 POST_UNINSTALL = :
59
60 host_alias = @host_alias@
61 host_triplet = @host@
62
63 @SET_MAKE@
64 AMDEP = @AMDEP@
65 AMTAR = @AMTAR@
66 AWK = @AWK@
67 DEPDIR = @DEPDIR@
68 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
69 INSTALL_STRIP_PROGRAM_ENV = @INSTALL_STRIP_PROGRAM_ENV@
70 MAKEINFO = @MAKEINFO@
71 PACKAGE = @PACKAGE@
72 PERL = @PERL@
73 STRIP = @STRIP@
74 VERSION = @VERSION@
75 _am_include = @_am_include@
76 install_sh = @install_sh@
77
78
79 AUTOMAKE_OPTIONS = gnits 1.4
80 MAINT_CHARSET = latin1
81
82 SUBDIRS = . m4 tests
83
84 bin_SCRIPTS = automake aclocal
85 info_TEXINFOS = automake.texi
86
87 amfiles = check.am clean-hdr.am clean-kr.am clean.am comp-vars.am \
88 compile.am data-clean.am data.am dejagnu.am depend.am depend2.am \
89 distdir.am footer.am header-vars.am header.am install.am \
90 java-clean.am java.am kr-extra.am library.am libs-clean.am libs.am \
91 libtool.am lisp-clean.am lisp.am ltlib-clean.am ltlib.am ltlibrary.am \
92 mans-vars.am mans.am multilib.am program.am progs-clean.am progs.am \
93 python.am python-clean.am remake-hdr.am remake.am scripts.am \
94 subdirs.am tags-clean.am tags.am texi-vers.am texinfos.am texibuild.am
95
96
97 dist_pkgdata_DATA = COPYING INSTALL texinfo.tex ansi2knr.c ansi2knr.1 \
98 $(amfiles)
99
100
101 scriptdir = $(pkgdatadir)
102 dist_script_DATA = config.guess config.sub install-sh mdate-sh missing \
103 mkinstalldirs elisp-comp ylwrap acinstall depcomp compile py-compile
104
105
106 TAGS_FILES = automake.in aclocal.in $(amfiles)
107
108 # The following requires a fixed version of the Emacs 19.30 etags.
109 ETAGS_ARGS = --lang=none \
110  --regex='/^@node[ \t]+\([^,]+\)/\1/' $(srcdir)/automake.texi
111
112 TAGS_DEPENDENCIES = automake.texi
113
114 EXTRA_DIST = ChangeLog.1996 ChangeLog.1998
115
116 WGET = wget
117
118 FETCHFILES = config.guess config.sub
119 subdir = .
120 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
121 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
122 CONFIG_CLEAN_FILES = automake aclocal
123 SCRIPTS = $(bin_SCRIPTS)
124
125 DIST_SOURCES =
126 TEXI2DVI = texi2dvi
127 INFO_DEPS = automake.info
128 DVIS = automake.dvi
129 TEXINFOS = automake.texi
130 DATA = $(dist_pkgdata_DATA) $(dist_script_DATA)
131
132 DIST_COMMON = README $(dist_pkgdata_DATA) $(dist_script_DATA) AUTHORS \
133 COPYING ChangeLog INSTALL Makefile.am Makefile.in NEWS README-alpha \
134 THANKS TODO aclocal.in aclocal.m4 ansi2knr.1 ansi2knr.c automake.in \
135 compile config.guess config.sub configure configure.in depcomp \
136 elisp-comp install-sh mdate-sh missing mkinstalldirs py-compile \
137 stamp-vti texinfo.tex version.texi ylwrap
138
139 DIST_SUBDIRS = $(SUBDIRS)
140 all: all-recursive
141 .SUFFIXES:
142 .SUFFIXES: .dvi .info .ps .texi .texinfo .txi
143
144 $(srcdir)/Makefile.in: Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
145         cd $(top_srcdir) && \
146           $(AUTOMAKE) --gnits  Makefile
147
148 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
149         cd $(top_builddir) && \
150           CONFIG_HEADERS= CONFIG_LINKS= \
151           CONFIG_FILES=$@ $(SHELL) ./config.status
152 $(ACLOCAL_M4): configure.in 
153         cd $(srcdir) && $(ACLOCAL)
154
155 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
156         $(SHELL) ./config.status --recheck
157 $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
158         cd $(srcdir) && $(AUTOCONF)
159 automake: $(top_builddir)/config.status automake.in
160         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
161 aclocal: $(top_builddir)/config.status aclocal.in
162         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
163 install-binSCRIPTS: $(bin_SCRIPTS)
164         @$(NORMAL_INSTALL)
165         $(mkinstalldirs) $(DESTDIR)$(bindir)
166         @list='$(bin_SCRIPTS)'; for p in $$list; do \
167           f="`echo $$p|sed '$(transform)'`"; \
168           if test -f $$p; then \
169             echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/$$f"; \
170             $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/$$f; \
171           elif test -f $(srcdir)/$$p; then \
172             echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/$$f"; \
173             $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/$$f; \
174           else :; fi; \
175         done
176
177 uninstall-binSCRIPTS:
178         @$(NORMAL_UNINSTALL)
179         @list='$(bin_SCRIPTS)'; for p in $$list; do \
180           f="`echo $$p|sed '$(transform)'`"; \
181           echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
182           rm -f $(DESTDIR)$(bindir)/$$f; \
183         done
184
185 $(srcdir)/version.texi: $(srcdir)/stamp-vti
186         @:
187
188 $(srcdir)/stamp-vti: automake.texi $(top_srcdir)/configure.in
189         @(set `$(SHELL) $(srcdir)/mdate-sh $(srcdir)/automake.texi`; \
190         echo "@set UPDATED $$1 $$2 $$3"; \
191         echo "@set UPDATED-MONTH $$2 $$3"; \
192         echo "@set EDITION $(VERSION)"; \
193         echo "@set VERSION $(VERSION)") > vti.tmp
194         @cmp -s vti.tmp $(srcdir)/version.texi \
195           || (echo "Updating $(srcdir)/version.texi"; \
196               cp vti.tmp $(srcdir)/version.texi)
197         -@rm -f vti.tmp
198         @cp $(srcdir)/version.texi $@
199
200 mostlyclean-vti:
201         -rm -f vti.tmp
202
203 maintainer-clean-vti:
204         -rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi
205
206 automake.info: automake.texi $(srcdir)/version.texi
207 automake.dvi: automake.texi $(srcdir)/version.texi
208
209 .texi.info:
210         @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
211         cd $(srcdir) \
212           && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
213
214 .texi.dvi:
215         TEXINPUTS=$(srcdir):$$TEXINPUTS \
216           MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
217
218 .texi:
219         @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
220         cd $(srcdir) \
221           && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
222
223 DVIPS = dvips
224 .dvi.ps:
225         $(DVIPS) $< -o $@
226
227 uninstall-info-am:
228         $(PRE_UNINSTALL)
229         @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
230           list='$(INFO_DEPS)'; \
231           for file in $$list; do \
232             echo " install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file"; \
233             install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file; \
234           done; \
235         else :; fi
236         @$(NORMAL_UNINSTALL)
237         @list='$(INFO_DEPS)'; \
238         for file in $$list; do \
239           (if cd $(DESTDIR)$(infodir); then \
240              echo " rm -f $$file $$file-[0-9] $$file-[0-9][0-9])"; \
241              rm -f $$file $$file-[0-9] $$file-[0-9][0-9]; \
242            else :; fi); \
243         done
244
245 dist-info: $(INFO_DEPS)
246         list='$(INFO_DEPS)'; \
247         for base in $$list; do \
248           d=$(srcdir); \
249           for file in `CDPATH=: && cd $$d && eval echo $$base*`; do \
250             test -f $(distdir)/$$file \
251             || cp -p $$d/$$file $(distdir)/$$file; \
252           done; \
253         done
254
255 mostlyclean-aminfo:
256         -rm -f automake.aux automake.cm automake.cp automake.cps automake.cv \
257           automake.dvi automake.fn automake.ky automake.log automake.op \
258           automake.ov automake.pg automake.ps automake.toc automake.tp \
259           automake.tr automake.vr automake.vrs
260
261 maintainer-clean-aminfo:
262         cd $(srcdir) && \
263         for i in $(INFO_DEPS); do \
264           rm -f $$i; \
265           if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
266             rm -f $$i-[0-9]*; \
267           fi; \
268         done
269 install-dist_pkgdataDATA: $(dist_pkgdata_DATA)
270         @$(NORMAL_INSTALL)
271         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
272         @list='$(dist_pkgdata_DATA)'; for p in $$list; do \
273           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
274           f="`echo $$p | sed -e 's|^.*/||'`"; \
275           echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f"; \
276           $(INSTALL_DATA) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f; \
277         done
278
279 uninstall-dist_pkgdataDATA:
280         @$(NORMAL_UNINSTALL)
281         @list='$(dist_pkgdata_DATA)'; for p in $$list; do \
282           f="`echo $$p | sed -e 's|^.*/||'`"; \
283           echo " rm -f $(DESTDIR)$(pkgdatadir)/$$f"; \
284           rm -f $(DESTDIR)$(pkgdatadir)/$$f; \
285         done
286 install-dist_scriptDATA: $(dist_script_DATA)
287         @$(NORMAL_INSTALL)
288         $(mkinstalldirs) $(DESTDIR)$(scriptdir)
289         @list='$(dist_script_DATA)'; for p in $$list; do \
290           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
291           f="`echo $$p | sed -e 's|^.*/||'`"; \
292           echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(scriptdir)/$$f"; \
293           $(INSTALL_DATA) $$d$$p $(DESTDIR)$(scriptdir)/$$f; \
294         done
295
296 uninstall-dist_scriptDATA:
297         @$(NORMAL_UNINSTALL)
298         @list='$(dist_script_DATA)'; for p in $$list; do \
299           f="`echo $$p | sed -e 's|^.*/||'`"; \
300           echo " rm -f $(DESTDIR)$(scriptdir)/$$f"; \
301           rm -f $(DESTDIR)$(scriptdir)/$$f; \
302         done
303
304 # This directory's subdirectories are mostly independent; you can cd
305 # into them and run `make' without going through this Makefile.
306 # To change the values of `make' variables: instead of editing Makefiles,
307 # (1) if the variable is set in `config.status', edit `config.status'
308 #     (which will cause the Makefiles to be regenerated when you run `make');
309 # (2) otherwise, pass the desired values on the `make' command line.
310 all-recursive install-data-recursive install-exec-recursive \
311 installdirs-recursive install-recursive uninstall-recursive \
312 install-info-recursive uninstall-info-recursive \
313 check-recursive installcheck-recursive info-recursive dvi-recursive:
314         @set fnord $(MAKEFLAGS); amf=$$2; \
315         dot_seen=no; \
316         target=`echo $@ | sed s/-recursive//`; \
317         list='$(SUBDIRS)'; for subdir in $$list; do \
318           echo "Making $$target in $$subdir"; \
319           if test "$$subdir" = "."; then \
320             dot_seen=yes; \
321             local_target="$$target-am"; \
322           else \
323             local_target="$$target"; \
324           fi; \
325           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
326            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
327         done; \
328         if test "$$dot_seen" = "no"; then \
329           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
330         fi; test -z "$$fail"
331
332 mostlyclean-recursive clean-recursive distclean-recursive \
333 maintainer-clean-recursive:
334         @set fnord $(MAKEFLAGS); amf=$$2; \
335         dot_seen=no; \
336         case "$@" in \
337           distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
338           *) list='$(SUBDIRS)' ;; \
339         esac; \
340         rev=''; for subdir in $$list; do \
341           if test "$$subdir" = "."; then :; else \
342             rev="$$subdir $$rev"; \
343           fi; \
344         done; \
345         rev="$$rev ."; \
346         target=`echo $@ | sed s/-recursive//`; \
347         for subdir in $$rev; do \
348           echo "Making $$target in $$subdir"; \
349           if test "$$subdir" = "."; then \
350             local_target="$$target-am"; \
351           else \
352             local_target="$$target"; \
353           fi; \
354           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
355            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
356         done && test -z "$$fail"
357 tags-recursive:
358         list='$(SUBDIRS)'; for subdir in $$list; do \
359           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
360         done
361
362 tags: TAGS
363
364 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
365         list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
366         unique=`for i in $$list; do \
367             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368           done | \
369           $(AWK) '    { files[$$0] = 1; } \
370                END { for (i in files) print i; }'`; \
371         mkid -fID $$unique $(LISP)
372
373 TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
374                 $(TAGS_FILES) $(LISP)
375         tags=; \
376         here=`pwd`; \
377         list='$(SUBDIRS)'; for subdir in $$list; do \
378    if test "$$subdir" = .; then :; else \
379             test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
380    fi; \
381         done; \
382         list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
383         unique=`for i in $$list; do \
384             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
385           done | \
386           $(AWK) '    { files[$$0] = 1; } \
387                END { for (i in files) print i; }'`; \
388         test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
389           || etags $(ETAGS_ARGS) $$tags  $$unique $(LISP)
390
391 GTAGS:
392         here=`CDPATH=: && cd $(top_builddir) && pwd` \
393           && cd $(top_srcdir) \
394           && gtags -i $$here
395
396 distclean-tags:
397         -rm -f TAGS ID
398
399 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
400
401 top_distdir = .
402 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
403
404 GZIP_ENV = --best
405
406 distdir: $(DISTFILES)
407         @if sed 15q $(srcdir)/NEWS | fgrep -e "$(VERSION)" >/dev/null; then :; else \
408           echo "NEWS not updated; not releasing" 1>&2; \
409           exit 1; \
410         fi
411         -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
412         mkdir $(distdir)
413         $(mkinstalldirs) $(distdir)/.
414         @for file in $(DISTFILES); do \
415           d=$(srcdir); \
416           if test -d $$d/$$file; then \
417             cp -pR $$d/$$file $(distdir) \
418             || exit 1; \
419           else \
420             test -f $(distdir)/$$file \
421             || cp -p $$d/$$file $(distdir)/$$file \
422             || exit 1; \
423           fi; \
424         done
425         for subdir in $(SUBDIRS); do \
426           if test "$$subdir" = .; then :; else \
427             test -d $(distdir)/$$subdir \
428             || mkdir $(distdir)/$$subdir \
429             || exit 1; \
430             (cd $$subdir && \
431               $(MAKE) $(AM_MAKEFLAGS) \
432                 top_distdir="$(top_distdir)" \
433                 distdir=../$(distdir)/$$subdir \
434                 distdir) \
435               || exit 1; \
436           fi; \
437         done
438         $(MAKE) $(AM_MAKEFLAGS) \
439           top_distdir="${top_distdir}" distdir="$(distdir)" \
440           dist-info
441         -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
442           ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
443           ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
444           ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
445         || chmod -R a+r $(distdir)
446 dist: distdir
447         $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
448         -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
449 # This target untars the dist file and tries a VPATH configuration.  Then
450 # it guarantees that the distribution is self-contained by making another
451 # tarfile.
452 distcheck: dist
453         -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
454         GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
455         chmod -R a-w $(distdir); chmod a+w $(distdir)
456         mkdir $(distdir)/=build
457         mkdir $(distdir)/=inst
458         chmod a-w $(distdir)
459         dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \
460           && cd $(distdir)/=build \
461           && ../configure --srcdir=.. --prefix=$$dc_install_base \
462           && $(MAKE) $(AM_MAKEFLAGS) \
463           && $(MAKE) $(AM_MAKEFLAGS) dvi \
464           && $(MAKE) $(AM_MAKEFLAGS) check \
465           && $(MAKE) $(AM_MAKEFLAGS) install \
466           && $(MAKE) $(AM_MAKEFLAGS) installcheck \
467           && $(MAKE) $(AM_MAKEFLAGS) uninstall \
468           && test `find $$dc_install_base -type f -print | wc -l` -le 1 \
469           && $(MAKE) $(AM_MAKEFLAGS) dist \
470           && $(MAKE) $(AM_MAKEFLAGS) distclean \
471           && rm -f $(distdir).tar.gz \
472           && (test `find . -type f -print | wc -l` -eq 0 \
473              || (echo "Error: files left after distclean" 1>&2; \
474                  exit 1) )
475         -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
476         @echo "$(distdir).tar.gz is ready for distribution" | \
477           sed 'h;s/./=/g;p;x;p;x'
478 check-am: all-am
479 check: check-recursive
480 all-am: Makefile $(INFO_DEPS) $(SCRIPTS) $(DATA)
481
482 installdirs: installdirs-recursive
483 installdirs-am:
484         $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(infodir) $(DESTDIR)$(pkgdatadir) $(DESTDIR)$(scriptdir)
485
486 install: install-recursive
487 install-exec: install-exec-recursive
488 install-data: install-data-recursive
489 uninstall: uninstall-recursive
490
491 install-am: all-am
492         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
493
494 installcheck: installcheck-recursive
495
496 install-strip:
497         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
498           INSTALL_PROGRAM_ENV='$(INSTALL_STRIP_PROGRAM_ENV)' install
499
500 mostlyclean-generic:
501
502 clean-generic:
503
504 distclean-generic:
505         -rm -f Makefile $(CONFIG_CLEAN_FILES)
506         -rm -f config.cache config.log stamp-h stamp-h[0-9]*
507
508 maintainer-clean-generic:
509         @echo "This command is intended for maintainers to use"
510         @echo "it deletes files that may require special tools to rebuild."
511         -rm -f Makefile.in
512 clean: clean-recursive
513
514 clean-am: clean-generic mostlyclean-am
515
516 dist-all: dist
517
518 distclean: distclean-recursive
519         -rm -f config.status
520
521 distclean-am: clean-am distclean-generic distclean-tags
522
523 dvi: dvi-recursive
524
525 dvi-am: $(DVIS)
526
527 info: info-recursive
528
529 info-am: $(INFO_DEPS)
530
531 install-data-am: install-dist_pkgdataDATA install-dist_scriptDATA \
532         install-info-am
533         @$(NORMAL_INSTALL)
534         $(MAKE) $(AM_MAKEFLAGS) install-data-hook
535
536 install-exec-am: install-binSCRIPTS
537
538 install-info: install-info-recursive
539
540 install-info-am: $(INFO_DEPS)
541         @$(NORMAL_INSTALL)
542         $(mkinstalldirs) $(DESTDIR)$(infodir)
543         @list='$(INFO_DEPS)'; \
544         for file in $$list; do \
545           d=$(srcdir); \
546           for ifile in `CDPATH=: && cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
547             if test -f $$d/$$ifile; then \
548               echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
549               $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
550             else : ; fi; \
551           done; \
552         done
553         @$(POST_INSTALL)
554         @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
555           list='$(INFO_DEPS)'; \
556           for file in $$list; do \
557             echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
558             install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
559           done; \
560         else : ; fi
561 install-man:
562
563 installcheck-am: installcheck-local
564
565 maintainer-clean: maintainer-clean-recursive
566         -rm -f config.status
567
568 maintainer-clean-am: distclean-am maintainer-clean-aminfo \
569         maintainer-clean-generic maintainer-clean-vti
570
571 mostlyclean: mostlyclean-recursive
572
573 mostlyclean-am: mostlyclean-aminfo mostlyclean-generic mostlyclean-vti
574
575 uninstall-am: uninstall-binSCRIPTS uninstall-dist_pkgdataDATA \
576         uninstall-dist_scriptDATA uninstall-info-am
577
578 uninstall-info: uninstall-info-recursive
579
580 .PHONY: all all-am all-recursive check check-am check-recursive clean \
581         clean-generic clean-recursive dist dist-all dist-info distcheck \
582         distclean distclean-generic distclean-recursive distclean-tags \
583         distdir dvi dvi-am dvi-recursive info info-am info-recursive \
584         install install-am install-binSCRIPTS install-data \
585         install-data-am install-data-recursive install-dist_pkgdataDATA \
586         install-dist_scriptDATA install-exec install-exec-am \
587         install-exec-recursive install-info install-info-recursive \
588         install-man install-recursive install-strip installcheck \
589         installcheck-am installcheck-local installcheck-recursive \
590         installdirs installdirs-am installdirs-recursive \
591         maintainer-clean maintainer-clean-aminfo \
592         maintainer-clean-generic maintainer-clean-recursive \
593         maintainer-clean-vti mostlyclean mostlyclean-aminfo \
594         mostlyclean-generic mostlyclean-recursive mostlyclean-vti tags \
595         tags-recursive uninstall uninstall-am uninstall-binSCRIPTS \
596         uninstall-dist_pkgdataDATA uninstall-dist_scriptDATA \
597         uninstall-info-recursive uninstall-recursive
598
599
600 install-data-hook:
601         @$(POST_INSTALL)
602         @for prog in $(dist_script_DATA); do \
603           echo " chmod +x $(DESTDIR)$(scriptdir)/$$prog"; \
604           chmod +x $(DESTDIR)$(scriptdir)/$$prog; \
605         done
606
607 installcheck-local:
608         for file in $(dist_script_DATA); do \
609           $(PERL) -e "exit ! -x '$(pkgdatadir)/$$file';" || exit 1; \
610         done
611
612 ################################################################
613
614 # Some simple checks, and then ordinary check.  These are only really
615 # guaranteed to work on my machine.
616 maintainer-check: automake aclocal
617         @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 22; then \
618           echo "found too many diffs between automake.in and automake"; 1>&2; \
619           diff -c $(srcdir)/automake.in automake; \
620           exit 1; \
621         fi
622         $(PERL) -c -w automake
623         $(PERL) -c -w aclocal
624         @if fgrep '\$${' $(srcdir)/[a-z]*.am | \
625                fgrep -v '$$$$' | \
626                grep . ; then \
627           echo "Found too many uses of '\$${' in the lines above." 1>&2; \
628           exit 1;                               \
629         else :; fi
630         @if fgrep -n 'mkinstalldirs' $(srcdir)/[a-z]*.am | \
631               fgrep -v '$$(mkinstalldirs)' | \
632               grep . ; then \
633           echo "Found incorrect use of mkinstalldirs in the lines above" 1>&2; \
634           exit 1; \
635         else :; fi
636         @if grep -n -w undef $(srcdir)/automake.in | \
637               fgrep -v 'undef $$/' | \
638               grep . ; then \
639           echo "Found undef in automake.in; use delete instead" 1>&2; \
640           exit 1; \
641         fi
642         @if fgrep -n 'split (/ /' $(srcdir)/automake.in; then \
643           echo "Found bad split in the lines above." 1>&2; \
644           exit 1; \
645         fi
646         @if grep -n '^[^#]*` *cd ' $(srcdir)/automake.in $(srcdir)/*.am \
647               $(srcdir)/m4/*.m4; then \
648           echo "Consider setting CDPATH in the lines above" 1>&2; \
649           exit 1; \
650         fi
651         @if grep -Hn '[^) ] *= *@_' $(srcdir)/automake.in; then \
652           echo "Using @_ in a scalar context in the lines above." 1>&2; \
653           exit 1; \
654         fi
655         @if grep '^[ \t]*local *(' $(srcdir)/automake.in; then \
656           echo "Don't use \`local' with parens: use several \`local' above." >&2; \
657           exit 1; \
658         fi
659         @locals=`grep -c '^[ \t]*local [^*]' $(srcdir)/automake.in`; \
660         case $$locals in \
661           [0] ) \
662             echo "Wow, congrats!  There are no \`local' now!." >&2; \
663             echo "Please update Makefile.am (maintainer-check)." >&2; \
664             exit 1; \
665           ;; \
666           1 ) ;; \
667           * ) \
668             echo "Too many \`local'!  Are you sure you need $$locals of them?" >&2; \
669             echo "Up to now 1 was enough." >&2; \
670             exit 1; \
671           ;; \
672         esac
673
674 # Tag before making distribution.  Also, don't make a distribution if
675 # checks fail.  Also, make sure the NEWS file is up-to-date.
676 cvs-dist: maintainer-check distcheck
677         @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
678           echo "NEWS not updated; not releasing" 1>&2; \
679           exit 1;                               \
680         fi
681         cd $(srcdir) && cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
682         $(MAKE) dist
683
684 cvs-diff:
685         thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
686         if test -z "$$OLDVERSION"; then \
687           prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
688         else prevno="$$OLDVERSION"; fi; \
689         prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
690         cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
691             > $(PACKAGE)-$$prevno-$(VERSION).diff
692
693 path-check: distdir
694         (cd $(distdir) && \
695           find . -print | xargs pathchk -p); \
696           status=$$?; \
697           chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir); \
698           exit $$status
699
700 fetch:
701         rm -rf Fetchdir > /dev/null 2>&1
702         mkdir Fetchdir
703         (cd Fetchdir && \
704         $(WGET) ftp://ftp.gnu.org/gnu/config/config.guess; \
705         $(WGET) ftp://ftp.gnu.org/gnu/config/config.sub)
706         @stat=0; for file in $(FETCHFILES); do \
707           if diff $(srcdir)/$$file Fetchdir/$$file > /dev/null 2>&1; then :; \
708           else \
709             stat=1; \
710             echo "install Fetchdir/$$file into srcdir and commit"; \
711           fi; \
712         done; exit $$stat
713
714 # Tell versions [3.59,3.63) of GNU make to not export all variables.
715 # Otherwise a system limit (for SysV at least) may be exceeded.
716 .NOEXPORT: