Merge branch 'msvc'
[platform/upstream/automake.git] / Makefile.in
1 # Makefile.in generated by automake 1.11a from Makefile.am.
2 # @configure_input@
3
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010  Free Software
6 # Foundation, Inc.
7 # This Makefile.in is free software; the Free Software Foundation
8 # gives unlimited permission to copy and/or distribute it,
9 # with or without modifications, as long as this notice is preserved.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 # PARTICULAR PURPOSE.
15
16 @SET_MAKE@
17
18 # Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004,
19 # 2005, 2006, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
20
21 # This program is free software; you can redistribute it and/or modify
22 # it under the terms of the GNU General Public License as published by
23 # the Free Software Foundation; either version 2, or (at your option)
24 # any later version.
25
26 # This program is distributed in the hope that it will be useful,
27 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29 # GNU General Public License for more details.
30
31 # You should have received a copy of the GNU General Public License
32 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
33
34 VPATH = @srcdir@
35 pkgdatadir = $(datadir)/@PACKAGE@
36 pkgincludedir = $(includedir)/@PACKAGE@
37 pkglibdir = $(libdir)/@PACKAGE@
38 pkglibexecdir = $(libexecdir)/@PACKAGE@
39 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
40 install_sh_DATA = $(install_sh) -c -m 644
41 install_sh_PROGRAM = $(install_sh) -c
42 install_sh_SCRIPT = $(install_sh) -c
43 INSTALL_HEADER = $(INSTALL_DATA)
44 transform = $(program_transform_name)
45 NORMAL_INSTALL = :
46 PRE_INSTALL = :
47 POST_INSTALL = :
48 NORMAL_UNINSTALL = :
49 PRE_UNINSTALL = :
50 POST_UNINSTALL = :
51 build_triplet = @build@
52 subdir = .
53 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
54         $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
55         ChangeLog INSTALL NEWS THANKS TODO
56 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
57 am__aclocal_m4_deps = $(top_srcdir)/m4/amversion.m4 \
58         $(top_srcdir)/m4/auxdir.m4 $(top_srcdir)/m4/init.m4 \
59         $(top_srcdir)/m4/install-sh.m4 $(top_srcdir)/m4/lead-dot.m4 \
60         $(top_srcdir)/m4/missing.m4 $(top_srcdir)/m4/mkdirp.m4 \
61         $(top_srcdir)/m4/options.m4 $(top_srcdir)/m4/runlog.m4 \
62         $(top_srcdir)/m4/sanity.m4 $(top_srcdir)/m4/silent.m4 \
63         $(top_srcdir)/m4/strip.m4 $(top_srcdir)/m4/substnot.m4 \
64         $(top_srcdir)/m4/tar.m4 $(top_srcdir)/configure.ac
65 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
66         $(ACLOCAL_M4)
67 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
68  configure.lineno config.status.lineno
69 mkinstalldirs = $(SHELL) $(top_srcdir)/lib/mkinstalldirs
70 CONFIG_CLEAN_FILES =
71 CONFIG_CLEAN_VPATH_FILES =
72 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
73 am__vpath_adj = case $$p in \
74     $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
75     *) f=$$p;; \
76   esac;
77 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
78 am__install_max = 40
79 am__nobase_strip_setup = \
80   srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
81 am__nobase_strip = \
82   for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
83 am__nobase_list = $(am__nobase_strip_setup); \
84   for p in $$list; do echo "$$p $$p"; done | \
85   sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
86   $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
87     if (++n[$$2] == $(am__install_max)) \
88       { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
89     END { for (dir in files) print dir, files[dir] }'
90 am__base_list = \
91   sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
92   sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
93 am__installdirs = "$(DESTDIR)$(bindir)"
94 SCRIPTS = $(bin_SCRIPTS)
95 AM_V_GEN = $(am__v_GEN_$(V))
96 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
97 am__v_GEN_0 = @echo "  GEN     " $@;
98 AM_V_at = $(am__v_at_$(V))
99 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
100 am__v_at_0 = @
101 SOURCES =
102 DIST_SOURCES =
103 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
104         html-recursive info-recursive install-data-recursive \
105         install-dvi-recursive install-exec-recursive \
106         install-html-recursive install-info-recursive \
107         install-pdf-recursive install-ps-recursive install-recursive \
108         installcheck-recursive installdirs-recursive pdf-recursive \
109         ps-recursive uninstall-recursive
110 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
111   distclean-recursive maintainer-clean-recursive
112 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
113         $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
114         cscope distdir dist dist-all distcheck
115 ETAGS = etags
116 CTAGS = ctags
117 CSCOPE = cscope
118 DIST_SUBDIRS = $(SUBDIRS)
119 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
120 distdir = $(PACKAGE)-$(VERSION)
121 top_distdir = $(distdir)
122 am__remove_distdir = \
123   { test ! -d "$(distdir)" \
124     || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
125          && rm -fr "$(distdir)"; }; }
126 am__post_remove_distdir = $(am__remove_distdir)
127 am__relativize = \
128   dir0=`pwd`; \
129   sed_first='s,^\([^/]*\)/.*$$,\1,'; \
130   sed_rest='s,^[^/]*/*,,'; \
131   sed_last='s,^.*/\([^/]*\)$$,\1,'; \
132   sed_butlast='s,/*[^/]*$$,,'; \
133   while test -n "$$dir1"; do \
134     first=`echo "$$dir1" | sed -e "$$sed_first"`; \
135     if test "$$first" != "."; then \
136       if test "$$first" = ".."; then \
137         dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
138         dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
139       else \
140         first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
141         if test "$$first2" = "$$first"; then \
142           dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
143         else \
144           dir2="../$$dir2"; \
145         fi; \
146         dir0="$$dir0"/"$$first"; \
147       fi; \
148     fi; \
149     dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
150   done; \
151   reldir="$$dir2"
152 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
153 GZIP_ENV = --best
154 DIST_TARGETS = dist-bzip2 dist-gzip
155 distuninstallcheck_listfiles = find . -type f -print
156 distcleancheck_listfiles = find . -type f -print
157 ACLOCAL = @ACLOCAL@
158 AMTAR = @AMTAR@
159 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
160 APIVERSION = @APIVERSION@
161 AUTOCONF = @AUTOCONF@
162 AUTOHEADER = @AUTOHEADER@
163 AUTOMAKE = @AUTOMAKE@
164 AWK = @AWK@
165 CYGPATH_W = @CYGPATH_W@
166 DEFS = @DEFS@
167 ECHO_C = @ECHO_C@
168 ECHO_N = @ECHO_N@
169 ECHO_T = @ECHO_T@
170 EGREP = @EGREP@
171 FGREP = @FGREP@
172 GREP = @GREP@
173 HELP2MAN = @HELP2MAN@
174 INSTALL = @INSTALL@
175 INSTALL_DATA = @INSTALL_DATA@
176 INSTALL_PROGRAM = @INSTALL_PROGRAM@
177 INSTALL_SCRIPT = @INSTALL_SCRIPT@
178 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
179 LIBOBJS = @LIBOBJS@
180 LIBS = @LIBS@
181 LN = @LN@
182 LTLIBOBJS = @LTLIBOBJS@
183 MAKEINFO = @MAKEINFO@
184 MKDIR_P = @MKDIR_P@
185 MODIFICATION_DELAY = @MODIFICATION_DELAY@
186 PACKAGE = @PACKAGE@
187 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
188 PACKAGE_NAME = @PACKAGE_NAME@
189 PACKAGE_STRING = @PACKAGE_STRING@
190 PACKAGE_TARNAME = @PACKAGE_TARNAME@
191 PACKAGE_URL = @PACKAGE_URL@
192 PACKAGE_VERSION = @PACKAGE_VERSION@
193 PATH_SEPARATOR = @PATH_SEPARATOR@
194 PERL = @PERL@
195 PERL_THREADS = @PERL_THREADS@
196 SET_MAKE = @SET_MAKE@
197 SHELL = @SHELL@
198 STRIP = @STRIP@
199 TEX = @TEX@
200 VERSION = @VERSION@
201 abs_builddir = @abs_builddir@
202 abs_srcdir = @abs_srcdir@
203 abs_top_builddir = @abs_top_builddir@
204 abs_top_srcdir = @abs_top_srcdir@
205 am_AUTOCONF = @am_AUTOCONF@
206 am_AUTOHEADER = @am_AUTOHEADER@
207 am__leading_dot = @am__leading_dot@
208 am__tar = @am__tar@
209 am__untar = @am__untar@
210 bindir = @bindir@
211 build = @build@
212 build_alias = @build_alias@
213 build_cpu = @build_cpu@
214 build_os = @build_os@
215 build_vendor = @build_vendor@
216 builddir = @builddir@
217 datadir = @datadir@
218 datarootdir = @datarootdir@
219 docdir = @docdir@
220 dvidir = @dvidir@
221 exec_prefix = @exec_prefix@
222 host_alias = @host_alias@
223 htmldir = @htmldir@
224 includedir = @includedir@
225 infodir = @infodir@
226 install_sh = @install_sh@
227 libdir = @libdir@
228 libexecdir = @libexecdir@
229 localedir = @localedir@
230 localstatedir = @localstatedir@
231 mandir = @mandir@
232 mkdir_p = @mkdir_p@
233 oldincludedir = @oldincludedir@
234 pdfdir = @pdfdir@
235 pkgvdatadir = @pkgvdatadir@
236 prefix = @prefix@
237 program_transform_name = @program_transform_name@
238 psdir = @psdir@
239 sbindir = @sbindir@
240 sh_errexit_works = @sh_errexit_works@
241 sharedstatedir = @sharedstatedir@
242 srcdir = @srcdir@
243 sysconfdir = @sysconfdir@
244 target_alias = @target_alias@
245 top_build_prefix = @top_build_prefix@
246 top_builddir = @top_builddir@
247 top_srcdir = @top_srcdir@
248 SUBDIRS = lib . doc m4 tests
249 bin_SCRIPTS = automake aclocal
250 CLEANFILES = $(bin_SCRIPTS)
251 AUTOMAKESOURCES = automake.in aclocal.in
252 TAGS_FILES = $(AUTOMAKESOURCES)
253 EXTRA_DIST = \
254   ChangeLog.96 \
255   ChangeLog.98 \
256   ChangeLog.00 \
257   ChangeLog.01 \
258   ChangeLog.02 \
259   ChangeLog.03 \
260   ChangeLog.04 \
261   ChangeLog.09 \
262   bootstrap \
263   $(AUTOMAKESOURCES)
264
265 do_subst = sed \
266   -e 's,[@]APIVERSION[@],$(APIVERSION),g' \
267   -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
268   -e 's,[@]PACKAGE_BUGREPORT[@],$(PACKAGE_BUGREPORT),g' \
269   -e 's,[@]PACKAGE_URL[@],$(PACKAGE_URL),g' \
270   -e 's,[@]PATH_SEPARATOR[@],$(PATH_SEPARATOR),g' \
271   -e 's,[@]PERL[@],$(PERL),g' \
272   -e 's,[@]PERL_THREADS[@],$(PERL_THREADS),g' \
273   -e 's,[@]SHELL[@],$(SHELL),g' \
274   -e 's,[@]VERSION[@],$(VERSION),g' \
275   -e 's,[@]configure_input[@],Generated from $@.in; do not edit by hand.,g' \
276   -e 's,[@]datadir[@],$(datadir),g'
277
278 TEST_SUBDIRS = lib/Automake/tests tests
279
280 # Perl coverage statistics.
281 PERL_COVERAGE_DB = $(abs_top_builddir)/cover_db
282 PERL_COVERAGE_FLAGS = -MDevel::Cover=-db,$(PERL_COVERAGE_DB),-silent,on,-summary,off
283 PERL_COVER = cover
284
285 # Some simple checks, and then ordinary check.  These are only really
286 # guaranteed to work on my machine.
287 syntax_check_rules = \
288 sc_diff_automake_in_automake \
289 sc_perl_syntax \
290 sc_no_brace_variable_expansions \
291 sc_rm_minus_f \
292 sc_no_for_variable_in_macro \
293 sc_mkinstalldirs \
294 sc_pre_normal_post_install_uninstall \
295 sc_perl_no_undef \
296 sc_perl_no_split_regex_space \
297 sc_cd_in_backquotes \
298 sc_cd_relative_dir \
299 sc_perl_at_uscore_in_scalar_context \
300 sc_perl_local_no_parens \
301 sc_perl_local \
302 sc_AMDEP_TRUE_in_automake_in \
303 sc_tests_make_without_am_makeflags \
304 sc_tests_plain_make \
305 sc_tests_plain_autoconf \
306 sc_tests_plain_autoupdate \
307 sc_tests_plain_automake \
308 sc_tests_here_document_format \
309 sc_tests_Exit_not_exit \
310 sc_tests_automake_fails \
311 sc_tests_plain_aclocal \
312 sc_tests_plain_perl \
313 sc_tests_required_after_defs \
314 sc_tests_overriding_macros_on_cmdline \
315 sc_tests_plain_sleep \
316 sc_tests_plain_egrep_fgrep \
317 sc_tests_logs_duplicate_prefixes \
318 sc_mkdir_p \
319 sc_perl_at_substs \
320 sc_unquoted_DESTDIR \
321 sc_tabs_in_texi \
322 sc_at_in_texi
323
324 WGET = wget
325 WGET_SV_CVS = $(WGET) http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/
326 WGET_SV_GIT_CF = $(WGET) 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;hb=HEAD;f='
327 WGET_SV_GIT_AC = $(WGET) 'http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blob_plain;hb=HEAD;f='
328 WGET_SV_GIT_GL = $(WGET) 'http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;hb=HEAD;f='
329 WGET_GCC = $(WGET) 'http://gcc.gnu.org/viewcvs/*checkout*/trunk/'
330 FETCHFILES = \
331 INSTALL \
332 config-ml.in \
333 config.guess \
334 config.sub \
335 symlink-tree \
336 texinfo.tex
337
338 all: all-recursive
339
340 .SUFFIXES:
341 am--refresh:
342         @:
343 $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
344         @for dep in $?; do \
345           case '$(am__configure_deps)' in \
346             *$$dep*) \
347               echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
348               $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
349                 && exit 0; \
350               exit 1;; \
351           esac; \
352         done; \
353         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
354         $(am__cd) $(top_srcdir) && \
355           $(AUTOMAKE) --gnu Makefile
356 .PRECIOUS: Makefile
357 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
358         @case '$?' in \
359           *config.status*) \
360             echo ' $(SHELL) ./config.status'; \
361             $(SHELL) ./config.status;; \
362           *) \
363             echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
364             cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
365         esac;
366
367 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
368         $(SHELL) ./config.status --recheck
369
370 $(top_srcdir)/configure:  $(am__configure_deps)
371         $(am__cd) $(srcdir) && $(AUTOCONF)
372 $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
373         $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
374 $(am__aclocal_m4_deps):
375 install-binSCRIPTS: $(bin_SCRIPTS)
376         @$(NORMAL_INSTALL)
377         test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
378         @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
379         for p in $$list; do \
380           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
381           if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
382         done | \
383         sed -e 'p;s,.*/,,;n' \
384             -e 'h;s|.*|.|' \
385             -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
386         $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
387           { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
388             if ($$2 == $$4) { files[d] = files[d] " " $$1; \
389               if (++n[d] == $(am__install_max)) { \
390                 print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
391             else { print "f", d "/" $$4, $$1 } } \
392           END { for (d in files) print "f", d, files[d] }' | \
393         while read type dir files; do \
394              if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
395              test -z "$$files" || { \
396                echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
397                $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
398              } \
399         ; done
400
401 uninstall-binSCRIPTS:
402         @$(NORMAL_UNINSTALL)
403         @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
404         files=`for p in $$list; do echo "$$p"; done | \
405                sed -e 's,.*/,,;$(transform)'`; \
406         test -n "$$list" || exit 0; \
407         echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
408         cd "$(DESTDIR)$(bindir)" && rm -f $$files
409
410 # This directory's subdirectories are mostly independent; you can cd
411 # into them and run `make' without going through this Makefile.
412 # To change the values of `make' variables: instead of editing Makefiles,
413 # (1) if the variable is set in `config.status', edit `config.status'
414 #     (which will cause the Makefiles to be regenerated when you run `make');
415 # (2) otherwise, pass the desired values on the `make' command line.
416 $(RECURSIVE_TARGETS):
417         @fail= failcom='exit 1'; \
418         for f in x $$MAKEFLAGS; do \
419           case $$f in \
420             *=* | --[!k]*);; \
421             *k*) failcom='fail=yes';; \
422           esac; \
423         done; \
424         dot_seen=no; \
425         target=`echo $@ | sed s/-recursive//`; \
426         list='$(SUBDIRS)'; for subdir in $$list; do \
427           echo "Making $$target in $$subdir"; \
428           if test "$$subdir" = "."; then \
429             dot_seen=yes; \
430             local_target="$$target-am"; \
431           else \
432             local_target="$$target"; \
433           fi; \
434           ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
435           || eval $$failcom; \
436         done; \
437         if test "$$dot_seen" = "no"; then \
438           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
439         fi; test -z "$$fail"
440
441 $(RECURSIVE_CLEAN_TARGETS):
442         @fail= failcom='exit 1'; \
443         for f in x $$MAKEFLAGS; do \
444           case $$f in \
445             *=* | --[!k]*);; \
446             *k*) failcom='fail=yes';; \
447           esac; \
448         done; \
449         dot_seen=no; \
450         case "$@" in \
451           distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
452           *) list='$(SUBDIRS)' ;; \
453         esac; \
454         rev=''; for subdir in $$list; do \
455           if test "$$subdir" = "."; then :; else \
456             rev="$$subdir $$rev"; \
457           fi; \
458         done; \
459         rev="$$rev ."; \
460         target=`echo $@ | sed s/-recursive//`; \
461         for subdir in $$rev; do \
462           echo "Making $$target in $$subdir"; \
463           if test "$$subdir" = "."; then \
464             local_target="$$target-am"; \
465           else \
466             local_target="$$target"; \
467           fi; \
468           ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
469           || eval $$failcom; \
470         done && test -z "$$fail"
471 tags-recursive:
472         list='$(SUBDIRS)'; for subdir in $$list; do \
473           test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
474         done
475 ctags-recursive:
476         list='$(SUBDIRS)'; for subdir in $$list; do \
477           test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
478         done
479 cscopelist-recursive:
480         list='$(SUBDIRS)'; for subdir in $$list; do \
481           test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \
482         done
483
484 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
485         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
486         unique=`for i in $$list; do \
487             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
488           done | \
489           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
490               END { if (nonempty) { for (i in files) print i; }; }'`; \
491         mkid -fID $$unique
492 tags: TAGS
493
494 TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
495                 $(TAGS_FILES) $(LISP)
496         set x; \
497         here=`pwd`; \
498         if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
499           include_option=--etags-include; \
500           empty_fix=.; \
501         else \
502           include_option=--include; \
503           empty_fix=; \
504         fi; \
505         list='$(SUBDIRS)'; for subdir in $$list; do \
506           if test "$$subdir" = .; then :; else \
507             test ! -f $$subdir/TAGS || \
508               set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
509           fi; \
510         done; \
511         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
512         unique=`for i in $$list; do \
513             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
514           done | \
515           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
516               END { if (nonempty) { for (i in files) print i; }; }'`; \
517         shift; \
518         if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
519           test -n "$$unique" || unique=$$empty_fix; \
520           if test $$# -gt 0; then \
521             $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
522               "$$@" $$unique; \
523           else \
524             $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
525               $$unique; \
526           fi; \
527         fi
528 ctags: CTAGS
529 CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
530                 $(TAGS_FILES) $(LISP)
531         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
532         unique=`for i in $$list; do \
533             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
534           done | \
535           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
536               END { if (nonempty) { for (i in files) print i; }; }'`; \
537         test -z "$(CTAGS_ARGS)$$unique" \
538           || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
539              $$unique
540
541 GTAGS:
542         here=`$(am__cd) $(top_builddir) && pwd` \
543           && $(am__cd) $(top_srcdir) \
544           && gtags -i $(GTAGS_ARGS) "$$here"
545
546 cscope: cscope.files
547         test ! -s cscope.files \
548           || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
549
550 clean-cscope:
551         -rm -f cscope.files
552
553 cscope.files: clean-cscope cscopelist-recursive cscopelist
554
555 cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP)
556         list='$(SOURCES) $(HEADERS) $(LISP)'; \
557         case "$(srcdir)" in \
558           [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
559           *) sdir=$(subdir)/$(srcdir) ;; \
560         esac; \
561         for i in $$list; do \
562           if test -f "$$i"; then \
563             echo "$(subdir)/$$i"; \
564           else \
565             echo "$$sdir/$$i"; \
566           fi; \
567         done >> $(top_builddir)/cscope.files
568
569 distclean-tags:
570         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
571         -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
572
573 distdir: $(DISTFILES)
574         $(am__remove_distdir)
575         test -d "$(distdir)" || mkdir "$(distdir)"
576         @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
577         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
578         list='$(DISTFILES)'; \
579           dist_files=`for file in $$list; do echo $$file; done | \
580           sed -e "s|^$$srcdirstrip/||;t" \
581               -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
582         case $$dist_files in \
583           */*) $(MKDIR_P) `echo "$$dist_files" | \
584                            sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
585                            sort -u` ;; \
586         esac; \
587         for file in $$dist_files; do \
588           if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
589           if test -d $$d/$$file; then \
590             dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
591             if test -d "$(distdir)/$$file"; then \
592               find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
593             fi; \
594             if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
595               cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
596               find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
597             fi; \
598             cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
599           else \
600             test -f "$(distdir)/$$file" \
601             || cp -p $$d/$$file "$(distdir)/$$file" \
602             || exit 1; \
603           fi; \
604         done
605         @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
606           if test "$$subdir" = .; then :; else \
607             test -d "$(distdir)/$$subdir" \
608             || $(MKDIR_P) "$(distdir)/$$subdir" \
609             || exit 1; \
610           fi; \
611         done
612         @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
613           if test "$$subdir" = .; then :; else \
614             dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
615             $(am__relativize); \
616             new_distdir=$$reldir; \
617             dir1=$$subdir; dir2="$(top_distdir)"; \
618             $(am__relativize); \
619             new_top_distdir=$$reldir; \
620             echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
621             echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
622             ($(am__cd) $$subdir && \
623               $(MAKE) $(AM_MAKEFLAGS) \
624                 top_distdir="$$new_top_distdir" \
625                 distdir="$$new_distdir" \
626                 am__remove_distdir=: \
627                 am__skip_length_check=: \
628                 am__skip_mode_fix=: \
629                 distdir) \
630               || exit 1; \
631           fi; \
632         done
633         $(MAKE) $(AM_MAKEFLAGS) \
634           top_distdir="$(top_distdir)" distdir="$(distdir)" \
635           dist-hook
636         -test -n "$(am__skip_mode_fix)" \
637         || find "$(distdir)" -type d ! -perm -755 \
638                 -exec chmod u+rwx,go+rx {} \; -o \
639           ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
640           ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
641           ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
642         || chmod -R a+r "$(distdir)"
643         @if test -z "$(am__skip_length_check)" && find "$(distdir)" -type f -print | \
644           grep '^...................................................................................................' 1>&2; then \
645           echo 'error: the above filenames are too long' 1>&2; \
646           exit 1; \
647         else :; fi
648 dist-gzip: distdir
649         tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
650         $(am__post_remove_distdir)
651 dist-bzip2: distdir
652         tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
653         $(am__post_remove_distdir)
654
655 dist-lzip: distdir
656         tardir=$(distdir) && $(am__tar) | lzip -9 -c >$(distdir).tar.lz
657         $(am__post_remove_distdir)
658
659 dist-lzma: distdir
660         tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
661         $(am__post_remove_distdir)
662
663 dist-xz: distdir
664         tardir=$(distdir) && $(am__tar) | xz -9 -c >$(distdir).tar.xz
665         $(am__post_remove_distdir)
666
667 dist-tarZ: distdir
668         tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
669         $(am__post_remove_distdir)
670
671 dist-shar: distdir
672         shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
673         $(am__post_remove_distdir)
674
675 dist-zip: distdir
676         -rm -f $(distdir).zip
677         zip -rq $(distdir).zip $(distdir)
678         $(am__post_remove_distdir)
679
680 dist dist-all:
681         $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
682         $(am__post_remove_distdir)
683
684 # This target untars the dist file and tries a VPATH configuration.  Then
685 # it guarantees that the distribution is self-contained by making another
686 # tarfile.
687 distcheck: dist
688         case '$(DIST_ARCHIVES)' in \
689         *.tar.gz*) \
690           GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
691         *.tar.bz2*) \
692           bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
693         *.tar.lzma*) \
694           lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
695         *.tar.lz*) \
696           lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
697         *.tar.xz*) \
698           xz -dc $(distdir).tar.xz | $(am__untar) ;;\
699         *.tar.Z*) \
700           uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
701         *.shar.gz*) \
702           GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
703         *.zip*) \
704           unzip $(distdir).zip ;;\
705         esac
706         chmod -R a-w $(distdir); chmod a+w $(distdir)
707         mkdir $(distdir)/_build
708         mkdir $(distdir)/_inst
709         chmod a-w $(distdir)
710         test -d $(distdir)/_build || exit 0; \
711         dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
712           && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
713           && am__cwd=`pwd` \
714           && $(am__cd) $(distdir)/_build \
715           && ../configure --srcdir=.. --prefix="$$dc_install_base" \
716             $(DISTCHECK_CONFIGURE_FLAGS) \
717           && $(MAKE) $(AM_MAKEFLAGS) \
718           && $(MAKE) $(AM_MAKEFLAGS) dvi \
719           && $(MAKE) $(AM_MAKEFLAGS) check \
720           && $(MAKE) $(AM_MAKEFLAGS) install \
721           && $(MAKE) $(AM_MAKEFLAGS) installcheck \
722           && $(MAKE) $(AM_MAKEFLAGS) uninstall \
723           && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
724                 distuninstallcheck \
725           && chmod -R a-w "$$dc_install_base" \
726           && ({ \
727                (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
728                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
729                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
730                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
731                     distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
732               } || { rm -rf "$$dc_destdir"; exit 1; }) \
733           && rm -rf "$$dc_destdir" \
734           && $(MAKE) $(AM_MAKEFLAGS) dist \
735           && rm -rf $(DIST_ARCHIVES) \
736           && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
737           && cd "$$am__cwd" \
738           || exit 1
739         $(am__post_remove_distdir)
740         @(echo "$(distdir) archives ready for distribution: "; \
741           list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
742           sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
743 distuninstallcheck:
744         @$(am__cd) '$(distuninstallcheck_dir)' \
745         && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
746            || { echo "ERROR: files left after uninstall:" ; \
747                 if test -n "$(DESTDIR)"; then \
748                   echo "  (check DESTDIR support)"; \
749                 fi ; \
750                 $(distuninstallcheck_listfiles) ; \
751                 exit 1; } >&2
752 distcleancheck: distclean
753         @if test '$(srcdir)' = . ; then \
754           echo "ERROR: distcleancheck can only run from a VPATH build" ; \
755           exit 1 ; \
756         fi
757         @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
758           || { echo "ERROR: files left in build directory after distclean:" ; \
759                $(distcleancheck_listfiles) ; \
760                exit 1; } >&2
761 check-am: all-am
762 check: check-recursive
763 all-am: Makefile $(SCRIPTS)
764 installdirs: installdirs-recursive
765 installdirs-am:
766         for dir in "$(DESTDIR)$(bindir)"; do \
767           test -z "$$dir" || $(MKDIR_P) "$$dir"; \
768         done
769 install: install-recursive
770 install-exec: install-exec-recursive
771 install-data: install-data-recursive
772 uninstall: uninstall-recursive
773
774 install-am: all-am
775         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
776
777 installcheck: installcheck-recursive
778 install-strip:
779         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
780           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
781           `test -z '$(STRIP)' || \
782             echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
783 mostlyclean-generic:
784
785 clean-generic:
786         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
787
788 distclean-generic:
789         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
790         -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
791
792 maintainer-clean-generic:
793         @echo "This command is intended for maintainers to use"
794         @echo "it deletes files that may require special tools to rebuild."
795 clean: clean-recursive
796
797 clean-am: clean-generic clean-local mostlyclean-am
798
799 distclean: distclean-recursive
800         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
801         -rm -f Makefile
802 distclean-am: clean-am distclean-generic distclean-tags
803
804 dvi: dvi-recursive
805
806 dvi-am:
807
808 html: html-recursive
809
810 html-am:
811
812 info: info-recursive
813
814 info-am:
815
816 install-data-am:
817
818 install-dvi: install-dvi-recursive
819
820 install-dvi-am:
821
822 install-exec-am: install-binSCRIPTS
823         @$(NORMAL_INSTALL)
824         $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
825 install-html: install-html-recursive
826
827 install-html-am:
828
829 install-info: install-info-recursive
830
831 install-info-am:
832
833 install-man:
834
835 install-pdf: install-pdf-recursive
836
837 install-pdf-am:
838
839 install-ps: install-ps-recursive
840
841 install-ps-am:
842
843 installcheck-am:
844
845 maintainer-clean: maintainer-clean-recursive
846         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
847         -rm -rf $(top_srcdir)/autom4te.cache
848         -rm -f Makefile
849 maintainer-clean-am: distclean-am maintainer-clean-generic
850
851 mostlyclean: mostlyclean-recursive
852
853 mostlyclean-am: mostlyclean-generic
854
855 pdf: pdf-recursive
856
857 pdf-am:
858
859 ps: ps-recursive
860
861 ps-am:
862
863 uninstall-am: uninstall-binSCRIPTS
864         @$(NORMAL_INSTALL)
865         $(MAKE) $(AM_MAKEFLAGS) uninstall-hook
866 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) \
867         cscopelist-recursive ctags-recursive install-am \
868         install-exec-am install-strip tags-recursive uninstall-am
869
870 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
871         all all-am am--refresh check check-am clean clean-cscope \
872         clean-generic clean-local cscope cscopelist \
873         cscopelist-recursive ctags ctags-recursive dist dist-all \
874         dist-bzip2 dist-gzip dist-hook dist-lzip dist-lzma dist-shar \
875         dist-tarZ dist-xz dist-zip distcheck distclean \
876         distclean-generic distclean-tags distcleancheck distdir \
877         distuninstallcheck dvi dvi-am html html-am info info-am \
878         install install-am install-binSCRIPTS install-data \
879         install-data-am install-dvi install-dvi-am install-exec \
880         install-exec-am install-exec-hook install-html install-html-am \
881         install-info install-info-am install-man install-pdf \
882         install-pdf-am install-ps install-ps-am install-strip \
883         installcheck installcheck-am installdirs installdirs-am \
884         maintainer-clean maintainer-clean-generic mostlyclean \
885         mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \
886         uninstall uninstall-am uninstall-binSCRIPTS uninstall-hook
887
888
889 install-exec-hook:
890         @$(POST_INSTALL)
891         @for p in $(bin_SCRIPTS); do \
892           f="`echo $$p|sed '$(transform)'`"; \
893           fv="$$f-$(APIVERSION)"; \
894           rm -f $(DESTDIR)$(bindir)/$$fv; \
895           echo " $(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv"; \
896           $(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \
897         done
898
899 uninstall-hook:
900         @for p in $(bin_SCRIPTS); do \
901           f="`echo $$p|sed '$(transform)'`"; \
902           fv="$$f-$(APIVERSION)"; \
903           rm -f $(DESTDIR)$(bindir)/$$fv; \
904         done
905
906 automake: automake.in
907 aclocal: aclocal.in
908 automake aclocal: Makefile
909         $(AM_V_GEN)rm -f $@ $@.tmp
910         $(AM_V_at)$(do_subst) $(srcdir)/$@.in >$@.tmp
911         $(AM_V_at)chmod +x $@.tmp
912         $(AM_V_at)chmod a-w $@.tmp
913         $(AM_V_at)mv -f $@.tmp $@
914
915 INSTALL: lib/INSTALL
916         $(AM_V_GEN)cp $(srcdir)/lib/INSTALL $@
917
918 .PHONY: recheck
919 recheck:
920         @failcom='exit 1'; \
921         for f in x $$MAKEFLAGS; do \
922           case $$f in \
923             *=* | --[!k]*);; \
924             *k*) failcom='fail=yes';; \
925           esac; \
926         done; \
927         for subdir in $(TEST_SUBDIRS); do \
928           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@) || eval $$failcom; \
929         done; \
930         test -z "$$fail"
931
932 ################################################################
933
934 # Ensure tests are world-executable
935 dist-hook:
936         cd $(distdir)/tests && chmod a+rx *.test
937
938 check-coverage-run recheck-coverage-run: all
939         $(mkinstalldirs) $(PERL_COVERAGE_DB)
940         PERL5OPT="$$PERL5OPT $(PERL_COVERAGE_FLAGS)"; export PERL5OPT; \
941         WANT_NO_THREADS=yes; export WANT_NO_THREADS; unset AUTOMAKE_JOBS; \
942         $(MAKE) $(AM_MAKEFLAGS) `echo $@ | sed 's/-coverage-run//'`
943
944 check-coverage-report:
945         @if test ! -d "$(PERL_COVERAGE_DB)"; then \
946           echo "No coverage database found in \`$(PERL_COVERAGE_DB)'." >&2; \
947           echo "Please run \`make check-coverage' first" >&2; \
948           exit 1; \
949         fi
950         $(PERL_COVER) $(PERL_COVER_FLAGS) "$(PERL_COVERAGE_DB)"
951
952 # We don't use direct dependencies here because we'd like to be able
953 # to invoke the report even after interrupted check-coverage.
954 check-coverage: check-coverage-run
955         $(MAKE) $(AM_MAKEFLAGS) check-coverage-report
956
957 recheck-coverage: recheck-coverage-run
958         $(MAKE) $(AM_MAKEFLAGS) check-coverage-report
959
960 clean-coverage:
961         rm -rf "$(PERL_COVERAGE_DB)"
962 clean-local: clean-coverage
963
964 .PHONY: check-coverage recheck-coverage check-coverage-run \
965         recheck-coverage-run check-coverage-report clean-coverage
966
967 .PHONY: $(syntax_check_rules)
968 $(syntax_check_rules): automake aclocal
969 maintainer-check: $(syntax_check_rules)
970
971 sc_diff_automake_in_automake:
972         @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 28; then \
973           echo "found too many diffs between automake.in and automake" 1>&2; \
974           diff -c $(srcdir)/automake.in automake; \
975           exit 1; \
976         fi
977
978 sc_perl_syntax:
979         perllibdir="./lib$(PATH_SEPARATOR)$(srcdir)/lib" $(PERL) -c -w automake
980         perllibdir="./lib$(PATH_SEPARATOR)$(srcdir)/lib" $(PERL) -c -w aclocal
981
982 sc_no_brace_variable_expansions:
983         @if grep -F '$${' $(srcdir)/lib/am/[a-z]*.am | \
984                grep -F -v '$$$$'; then \
985           echo "Found too many uses of '\$${' in the lines above." 1>&2; \
986           exit 1;                               \
987         else :; fi
988
989 sc_rm_minus_f:
990         @if grep -v '^#' $(srcdir)/lib/am/[a-z]*.am $(srcdir)/tests/*.test | \
991             grep -E '\<rm ([^-]|\-[^f ]*\>)'; then \
992           echo "Suspicious 'rm' invocation." 1>&2; \
993           exit 1;                               \
994         else :; fi
995
996 sc_no_for_variable_in_macro:
997         @if grep 'for .* in \$$(' $(srcdir)/lib/am/[a-z]*.am; then \
998           echo 'Use "list=$$(mumble); for var in $$$$list".' 1>&2 ; \
999           exit 1; \
1000         else :; fi
1001
1002 sc_mkinstalldirs:
1003         @if grep -n 'mkinstalldirs' $(srcdir)/lib/am/[a-z]*.am | \
1004               grep -F -v '$$(mkinstalldirs)'; then \
1005           echo "Found incorrect use of mkinstalldirs in the lines above" 1>&2; \
1006           exit 1; \
1007         else :; fi
1008
1009 sc_pre_normal_post_install_uninstall:
1010         @if grep -E -n '\((PRE|NORMAL|POST)_(|UN)INSTALL\)' \
1011                  $(srcdir)/lib/am/[a-z]*.am | \
1012               grep -v ':##' | grep -v ':        @\$$('; then \
1013           echo "Found incorrect use of PRE/NORMAL/POST_INSTALL/UNINSTALL in the lines above" 1>&2; \
1014           exit 1; \
1015         else :; fi
1016
1017 sc_perl_no_undef:
1018         @if grep -n -w 'undef ' $(srcdir)/automake.in | \
1019               grep -F -v 'undef $$/'; then \
1020           echo "Found undef in automake.in; use delete instead" 1>&2; \
1021           exit 1; \
1022         fi
1023
1024 sc_perl_no_split_regex_space:
1025         @if grep -n 'split (/ /' $(srcdir)/automake.in; then \
1026           echo "Found bad split in the lines above." 1>&2; \
1027           exit 1; \
1028         fi
1029
1030 sc_cd_in_backquotes:
1031         @if grep -n '^[^#]*` *cd ' $(srcdir)/automake.in \
1032               $(srcdir)/lib/am/*.am; then \
1033           echo "Consider using \$$(am__cd) in the lines above." 1>&2; \
1034           exit 1; \
1035         fi
1036
1037 sc_cd_relative_dir:
1038         @if grep -n '^[^#]*cd ' $(srcdir)/automake.in \
1039               $(srcdir)/lib/am/*.am | \
1040               grep -v 'echo.*cd ' | \
1041               grep -v 'am__cd =' | \
1042               grep -v '^[^#]*cd [./]' | \
1043               grep -v '^[^#]*cd \$$(top_builddir)' | \
1044               grep -v '^[^#]*cd "\$$\$$am__cwd' | \
1045               grep -v '^[^#]*cd \$$(abs' | \
1046               grep -v '^[^#]*cd "\$$(DESTDIR)'; then \
1047           echo "Consider using \$$(am__cd) in the lines above." 1>&2; \
1048           exit 1; \
1049         fi
1050
1051 sc_perl_at_uscore_in_scalar_context:
1052         @if grep -Hn '[^@_A-Za-z0-9][_A-Za-z0-9]*[^) ] *= *@_' $(srcdir)/automake.in; then \
1053           echo "Using @_ in a scalar context in the lines above." 1>&2; \
1054           exit 1; \
1055         fi
1056
1057 sc_perl_local_no_parens:
1058         @if grep '^[ \t]*local *(' $(srcdir)/automake.in; then \
1059           echo "Don't use \`local' with parens: use several \`local' above." >&2; \
1060           exit 1; \
1061         fi
1062
1063 sc_perl_local:
1064         @if grep -v '^[ \t]*local \$$_;' $(srcdir)/automake.in | \
1065                 grep '^[ \t]*local [^*]'; then \
1066           echo "Please avoid \`local'." 1>&2; \
1067           exit 1; \
1068         fi
1069
1070 sc_AMDEP_TRUE_in_automake_in:
1071         @if grep '@AMDEP''_TRUE@' $(srcdir)/automake.in; then \
1072           echo "Don't put AMDEP_TRUE substitution in automake.in" 1>&2; \
1073           exit 1; \
1074         fi
1075
1076 sc_tests_make_without_am_makeflags:
1077         @if grep '^[^#].*(MAKE) ' $(srcdir)/lib/am/*.am $(srcdir)/automake.in |\
1078                 grep -v 'AM_MAKEFLAGS'; then \
1079           echo 'Use $$(MAKE) $$(AM_MAKEFLAGS).' 1>&2; \
1080           exit 1; \
1081         fi
1082
1083 sc_tests_plain_make:
1084         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*make'; then \
1085           echo 'Do not run "make" in the above tests.  Use "$$MAKE" instead.' 1>&2; \
1086           exit 1; \
1087         fi
1088
1089 sc_tests_plain_autoconf:
1090         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*autoconf'; then \
1091           echo 'Do not run "autoconf" in the above tests.  Use "$$AUTOCONF" instead.' 1>&2; \
1092           exit 1; \
1093         fi
1094
1095 sc_tests_plain_autoupdate:
1096         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*autoupdate'; then \
1097           echo 'Do not run "autoupdate" in the above tests.  Use "$$AUTOUPDATE" instead.' 1>&2; \
1098           exit 1; \
1099         fi
1100
1101 sc_tests_plain_automake:
1102         @if grep -v '^#' $(srcdir)/tests/*.test | grep -E ':[   ]*automake([^:]|$$)'; then \
1103           echo 'Do not run "automake" in the above tests.  Use "$$AUTOMAKE" instead.' 1>&2;  \
1104           exit 1; \
1105         fi
1106
1107 sc_tests_here_document_format:
1108         @if grep '<<' $(srcdir)/tests/*.test | grep -v 'END' | grep -v 'EOF'; then \
1109           echo 'Use here documents with "END" and "EOF" only, for greppability.' 1>&2; \
1110           exit 1; \
1111         fi
1112
1113 sc_tests_Exit_not_exit:
1114         @found=false; for file in $(srcdir)/tests/*.test; do \
1115           res=`sed -n -e '/^#/d; /^\$$PERL/d' -e '/<<.*END/,/^END/b' \
1116                       -e '/<<.*EOF/,/^EOF/b' -e '/exit [$$0-9]/p' $$file`; \
1117           if test -n "$$res"; then \
1118             echo "$$file:$$res"; \
1119             found=true; \
1120           fi; \
1121         done; \
1122         if $$found; then \
1123           echo 'Do not call plain "exit", use "Exit" instead, in above tests.' 1>&2; \
1124           exit 1; \
1125         fi
1126
1127 sc_tests_automake_fails:
1128         @if grep -v '^#' $(srcdir)/tests/*.test | grep '\$$AUTOMAKE.*&&.*[eE]xit'; then \
1129           echo 'Use AUTOMAKE_fails + grep to catch automake failures in the above tests.' 1>&2;  \
1130           exit 1; \
1131         fi
1132
1133 sc_tests_plain_aclocal:
1134         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*aclocal'; then \
1135           echo 'Do not run "aclocal" in the above tests.  Use "$$ACLOCAL" instead.' 1>&2;  \
1136           exit 1; \
1137         fi
1138
1139 sc_tests_plain_perl:
1140         @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*perl'; then \
1141           echo 'Do not run "perl" in the above tests.  Use "$$PERL" instead.' 1>&2; \
1142           exit 1; \
1143         fi
1144
1145 sc_tests_required_after_defs:
1146         @for file in $(srcdir)/tests/*.test; do \
1147           if out=`sed -n '/defs/,$${/required=/p;}' $$file`; test -n "$$out"; then \
1148             echo 'Do not set "required" after sourcing "defs" in '"$$file: $$out" 1>&2; \
1149             exit 1; \
1150           fi; \
1151         done
1152
1153 sc_tests_overriding_macros_on_cmdline:
1154         @if grep -E '\$$MAKE .*(SHELL=.*=|=.*SHELL=)' $(srcdir)/tests/*.test; then \
1155           echo 'Rewrite "$$MAKE foo=bar SHELL=$$SHELL" as "foo=bar $$MAKE -e SHELL=$$SHELL"' 1>&2; \
1156           echo ' in the above lines, it is more portable.' 1>&2; \
1157           exit 1; \
1158         fi
1159         @if sed 's/DESTDIR=[^ ]*//; s/SHELL=[^ ]*//; s/V=[^ ]*//' $(srcdir)/tests/*.test | \
1160             grep '\$$MAKE .*=' ; then \
1161           echo 'Rewrite "$$MAKE foo=bar" as "foo=bar $$MAKE -e" in the above lines,' 1>&2; \
1162           echo 'it is more portable.' 1>&2; \
1163           exit 1; \
1164         fi
1165         @if grep 'SHELL=.*\$$MAKE' $(srcdir)/tests/*.test; then \
1166           echo '$$MAKE ignores the SHELL envvar, use "$$MAKE SHELL=$$SHELL" in' 1>&2; \
1167           echo 'the above lines.' 1>&2; \
1168           exit 1; \
1169         fi
1170
1171 sc_tests_plain_sleep:
1172         @if grep -E '\bsleep +[12345]\b' $(srcdir)/tests/*.test; then \
1173           echo 'Do not use "sleep x" in the above tests.  Use "$$sleep" instead.' 1>&2; \
1174           exit 1; \
1175         fi
1176
1177 sc_tests_plain_egrep_fgrep:
1178         @if grep -E '\b[ef]grep\b' $(srcdir)/tests/*.test ; then \
1179           echo 'Do not use egrep or fgrep in test cases.  Use $$FGREP or $$EGREP.' 1>&2; \
1180           exit 1; \
1181         fi
1182         @if grep -E '\b[ef]grep\b' $(srcdir)/lib/am/*.am $(srcdir)/m4/*.m4; then \
1183           echo 'Do not use egrep or fgrep in the above files, they are not portable.' 1>&2; \
1184           exit 1; \
1185         fi
1186
1187 sc_ensure_testsuite_has_run:
1188         @if test ! -f tests/test-suite.log; then \
1189           echo "Run \`make check' before \`maintainer-check'" >&2; \
1190           exit 1; \
1191         fi
1192 .PHONY: sc_ensure_testsuite_has_run
1193
1194 sc_tests_logs_duplicate_prefixes: sc_ensure_testsuite_has_run
1195         @if grep -E '(warning|error):.*(warning|error):' tests/*.log; then \
1196           echo 'Duplicate warning/error message prefixes seen in above tests.' >&2; \
1197           exit 1; \
1198         fi
1199
1200 sc_mkdir_p:
1201         @if grep 'mkdir_p' $(srcdir)/automake.in \
1202               $(srcdir)/lib/am/*.am $(srcdir)/tests/*.test; then \
1203           echo 'Do not use mkdir_p in the above files, use MKDIR_P.' 1>&2; \
1204           exit 1; \
1205         fi
1206
1207 sc_perl_at_substs:
1208         @if test `grep -E '^[^#]*@[A-Za-z_0-9]+@' aclocal | wc -l` -ne 0; then \
1209           echo "Unresolved @...@ substitution in aclocal" 1>&2; \
1210           exit 1; \
1211         fi
1212         @if test `grep -E '^[^#]*@[A-Za-z_0-9]+@' automake | wc -l` -ne 0; then \
1213           echo "Unresolved @...@ substitution in automake" 1>&2; \
1214           exit 1; \
1215         fi
1216
1217 sc_unquoted_DESTDIR:
1218         @if grep -E "[^\'\"]\\\$$\(DESTDIR" $(srcdir)/lib/am/*.am; then \
1219           echo 'Suspicious unquoted DESTDIR uses.' 1>&2 ; \
1220           exit 1; \
1221         fi
1222
1223 sc_tabs_in_texi:
1224         @if grep '      ' $(srcdir)/doc/automake.texi; then \
1225           echo 'Do not use tabs in the manual.' 1>&2; \
1226           exit 1; \
1227         fi
1228
1229 sc_at_in_texi:
1230         @if grep -E '([^@]|^)@([         ][^@]|$$)' $(srcdir)/doc/automake.texi; \
1231         then \
1232           echo 'Unescaped @.' 1>&2; \
1233           exit 1; \
1234         fi
1235
1236 git-dist: maintainer-check
1237         @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
1238           echo "NEWS not updated; not releasing" 1>&2; \
1239           exit 1;                               \
1240         fi
1241         $(MAKE) $(AM_MAKEFLAGS) distcheck
1242         cd $(srcdir) && git commit -a -s && \
1243            git tag -s "v$(VERSION)" -m "Release $(VERSION)"
1244
1245 git-release: git-dist
1246         case $(VERSION) in \
1247           *[a-z]) dest=alpha;; \
1248           *)      dest=ftp;; \
1249         esac; \
1250         $(srcdir)/lib/gnupload $(GNUPLOADFLAGS) \
1251           --to $$dest.gnu.org:automake $(DIST_ARCHIVES)
1252
1253 git-diff:
1254         thisver="v$(VERSION)"; \
1255         if test -z "$$OLDVERSION"; then \
1256           prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
1257         else prevno="$$OLDVERSION"; fi; \
1258         prevver=v$$prevno; \
1259         git diff $$prevver..$$thisver $(PACKAGE) \
1260             > $(PACKAGE)-$$prevno-$(VERSION).diff
1261
1262 path-check: distdir
1263         (cd $(distdir) && \
1264           find . -print | xargs pathchk -p); \
1265           estatus=$$?; \
1266           find $(distdir) -type d '!' -perm -200 -exec chmod u+w {} ';'; \
1267           rm -rf $(distdir); \
1268           exit $$estatus
1269
1270 fetch:
1271         rm -rf Fetchdir > /dev/null 2>&1
1272         mkdir Fetchdir
1273         (cd Fetchdir && \
1274         $(WGET_SV_GIT_CF)config.guess -O config.guess && \
1275         $(WGET_SV_GIT_CF)config.sub -O config.sub && \
1276         $(WGET_SV_CVS)texinfo/texinfo/doc/texinfo.tex -O texinfo.tex && \
1277         $(WGET_SV_GIT_GL)doc/INSTALL -O INSTALL && \
1278         $(WGET_GCC)config-ml.in -O config-ml.in && \
1279         $(WGET_GCC)symlink-tree -O symlink-tree)
1280         @stat=0; for file in $(FETCHFILES); do \
1281           if diff -u $(srcdir)/lib/$$file Fetchdir/$$file \
1282                   >>Fetchdir/update.patch 2>/dev/null; then :; \
1283           else \
1284             stat=1; \
1285             echo "Updating $(srcdir)/lib/$$file ..."; \
1286             cp Fetchdir/$$file $(srcdir)/lib/$$file; \
1287           fi; \
1288         done; \
1289         test $$stat = 0 || \
1290           echo "See Fetchdir/update.patch for a log of the changes."; \
1291         exit $$stat
1292
1293 release-stats: ps
1294         @am=`wc -l < automake` && \
1295         acl=`wc -l < aclocal` && \
1296         pmfiles="lib/Automake/*.pm" && \
1297         if test . != '$(srcdir)'; then pmfiles="$$pmfiles $(srcdir)/lib/Automake/*.pm"; \
1298         else :; fi && \
1299         pm=`cat $$pmfiles | wc -l` && \
1300         dot_am_files=`ls -1 $(srcdir)/lib/am/*.am | grep -v Makefile.am` && \
1301         amf=`echo "$$dot_am_files" | wc -l` && \
1302         aml=`cat $$dot_am_files | wc -l` && \
1303         m4f=`ls -1 $(srcdir)/m4/*.m4 | wc -l` && \
1304         m4l=`cat $(srcdir)/m4/*.m4 | wc -l` && \
1305         doc_text=`cd doc && LC_ALL=C pstops 0 automake.ps unused.ps 2>&1` && \
1306         echo "$$doc_text" && \
1307         rm -f doc/unused.ps && \
1308         doc=`echo "$$doc_text" | sed -n 's/.*Wrote \([1-9][0-9]*\) pages.*/\1/p'` && \
1309         tests="tests/*.test"; \
1310         if test . != '$(srcdir)'; then tests="$$tests $(srcdir)/tests/*.test"; \
1311         else :; fi && \
1312         t=`ls -1 $$tests | wc -l` && \
1313         tgen=`ls -1 $$tests | grep '.-p\.test' | wc -l` && \
1314         today=`date +%Y-%m-%d` && \
1315         echo "add this to the table in doc/automake.texi after verification:" && \
1316         printf '@item %s @tab %-6s @tab %4d @tab %4d @tab %4d @tab %4d %-4s @tab %4d %-4s @tab %3d @tab %d %-4s\n' \
1317                       $$today $(VERSION) $$am    $$acl    $$pm   $$aml "($$amf)" $$m4l "($$m4f)" $$doc $$t "($$tgen)"
1318 .PHONY: release-stats
1319
1320 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1321 # Otherwise a system limit (for SysV at least) may be exceeded.
1322 .NOEXPORT: