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