1 # Makefile.in generated by automake 1.11a from Makefile.am.
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
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.
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
18 # Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004,
19 # 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
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)
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.
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/>.
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)
51 build_triplet = @build@
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) \
67 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
68 configure.lineno config.status.lineno
69 mkinstalldirs = $(SHELL) $(top_srcdir)/lib/mkinstalldirs
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/||"`;; \
77 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
79 am__nobase_strip_setup = \
80 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
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] }'
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))
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
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)
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"`; \
140 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
141 if test "$$first2" = "$$first"; then \
142 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
146 dir0="$$dir0"/"$$first"; \
149 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
152 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
154 DIST_TARGETS = dist-bzip2 dist-gzip
155 distuninstallcheck_listfiles = find . -type f -print
156 distcleancheck_listfiles = find . -type f -print
159 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
160 APIVERSION = @APIVERSION@
161 AUTOCONF = @AUTOCONF@
162 AUTOHEADER = @AUTOHEADER@
163 AUTOMAKE = @AUTOMAKE@
165 CYGPATH_W = @CYGPATH_W@
173 HELP2MAN = @HELP2MAN@
175 INSTALL_DATA = @INSTALL_DATA@
176 INSTALL_PROGRAM = @INSTALL_PROGRAM@
177 INSTALL_SCRIPT = @INSTALL_SCRIPT@
178 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
182 LTLIBOBJS = @LTLIBOBJS@
183 MAKEINFO = @MAKEINFO@
185 MODIFICATION_DELAY = @MODIFICATION_DELAY@
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@
195 PERL_THREADS = @PERL_THREADS@
196 SET_MAKE = @SET_MAKE@
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@
209 am__untar = @am__untar@
212 build_alias = @build_alias@
213 build_cpu = @build_cpu@
214 build_os = @build_os@
215 build_vendor = @build_vendor@
216 builddir = @builddir@
218 datarootdir = @datarootdir@
221 exec_prefix = @exec_prefix@
222 host_alias = @host_alias@
224 includedir = @includedir@
226 install_sh = @install_sh@
228 libexecdir = @libexecdir@
229 localedir = @localedir@
230 localstatedir = @localstatedir@
233 oldincludedir = @oldincludedir@
235 pkgvdatadir = @pkgvdatadir@
237 program_transform_name = @program_transform_name@
240 sh_errexit_works = @sh_errexit_works@
241 sharedstatedir = @sharedstatedir@
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)
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'
278 TEST_SUBDIRS = lib/Automake/tests tests
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
285 # Some simple checks, and then ordinary check. These are only really
286 # guaranteed to work on my machine.
287 syntax_check_rules = \
289 sc_diff_automake_in_automake \
291 sc_no_brace_variable_expansions \
293 sc_no_for_variable_in_macro \
295 sc_pre_normal_post_install_uninstall \
297 sc_perl_no_split_regex_space \
298 sc_cd_in_backquotes \
300 sc_perl_at_uscore_in_scalar_context \
301 sc_perl_local_no_parens \
303 sc_AMDEP_TRUE_in_automake_in \
304 sc_tests_make_without_am_makeflags \
305 sc_tests_plain_make \
306 sc_tests_plain_autoconf \
307 sc_tests_plain_autoupdate \
308 sc_tests_plain_automake \
309 sc_tests_here_document_format \
310 sc_tests_Exit_not_exit \
311 sc_tests_automake_fails \
312 sc_tests_plain_aclocal \
313 sc_tests_plain_perl \
314 sc_tests_required_after_defs \
315 sc_tests_overriding_macros_on_cmdline \
316 sc_tests_plain_sleep \
317 sc_tests_plain_egrep_fgrep \
318 sc_tests_PATH_SEPARATOR \
319 sc_tests_logs_duplicate_prefixes \
320 sc_tests_makefile_variable_order \
323 sc_unquoted_DESTDIR \
377 WGET_SV_CVS = $(WGET) http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/
378 WGET_SV_GIT_CF = $(WGET) 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;hb=HEAD;f='
379 WGET_SV_GIT_AC = $(WGET) 'http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blob_plain;hb=HEAD;f='
380 WGET_SV_GIT_GL = $(WGET) 'http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;hb=HEAD;f='
381 WGET_GCC = $(WGET) 'http://gcc.gnu.org/viewcvs/*checkout*/trunk/'
395 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
397 case '$(am__configure_deps)' in \
399 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
400 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
405 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
406 $(am__cd) $(top_srcdir) && \
407 $(AUTOMAKE) --gnu Makefile
409 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
412 echo ' $(SHELL) ./config.status'; \
413 $(SHELL) ./config.status;; \
415 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
416 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
419 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
420 $(SHELL) ./config.status --recheck
422 $(top_srcdir)/configure: $(am__configure_deps)
423 $(am__cd) $(srcdir) && $(AUTOCONF)
424 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
425 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
426 $(am__aclocal_m4_deps):
427 install-binSCRIPTS: $(bin_SCRIPTS)
429 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
430 @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
431 for p in $$list; do \
432 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
433 if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
435 sed -e 'p;s,.*/,,;n' \
437 -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
438 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
439 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
440 if ($$2 == $$4) { files[d] = files[d] " " $$1; \
441 if (++n[d] == $(am__install_max)) { \
442 print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
443 else { print "f", d "/" $$4, $$1 } } \
444 END { for (d in files) print "f", d, files[d] }' | \
445 while read type dir files; do \
446 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
447 test -z "$$files" || { \
448 echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
449 $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
453 uninstall-binSCRIPTS:
455 @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
456 files=`for p in $$list; do echo "$$p"; done | \
457 sed -e 's,.*/,,;$(transform)'`; \
458 test -n "$$list" || exit 0; \
459 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
460 cd "$(DESTDIR)$(bindir)" && rm -f $$files
462 # This directory's subdirectories are mostly independent; you can cd
463 # into them and run `make' without going through this Makefile.
464 # To change the values of `make' variables: instead of editing Makefiles,
465 # (1) if the variable is set in `config.status', edit `config.status'
466 # (which will cause the Makefiles to be regenerated when you run `make');
467 # (2) otherwise, pass the desired values on the `make' command line.
468 $(RECURSIVE_TARGETS):
469 @fail= failcom='exit 1'; \
470 for f in x $$MAKEFLAGS; do \
473 *k*) failcom='fail=yes';; \
477 target=`echo $@ | sed s/-recursive//`; \
478 list='$(SUBDIRS)'; for subdir in $$list; do \
479 echo "Making $$target in $$subdir"; \
480 if test "$$subdir" = "."; then \
482 local_target="$$target-am"; \
484 local_target="$$target"; \
486 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
489 if test "$$dot_seen" = "no"; then \
490 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
493 $(RECURSIVE_CLEAN_TARGETS):
494 @fail= failcom='exit 1'; \
495 for f in x $$MAKEFLAGS; do \
498 *k*) failcom='fail=yes';; \
503 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
504 *) list='$(SUBDIRS)' ;; \
506 rev=''; for subdir in $$list; do \
507 if test "$$subdir" = "."; then :; else \
508 rev="$$subdir $$rev"; \
512 target=`echo $@ | sed s/-recursive//`; \
513 for subdir in $$rev; do \
514 echo "Making $$target in $$subdir"; \
515 if test "$$subdir" = "."; then \
516 local_target="$$target-am"; \
518 local_target="$$target"; \
520 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
522 done && test -z "$$fail"
524 list='$(SUBDIRS)'; for subdir in $$list; do \
525 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
528 list='$(SUBDIRS)'; for subdir in $$list; do \
529 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
531 cscopelist-recursive:
532 list='$(SUBDIRS)'; for subdir in $$list; do \
533 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \
536 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
537 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
538 unique=`for i in $$list; do \
539 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
541 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
542 END { if (nonempty) { for (i in files) print i; }; }'`; \
546 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
547 $(TAGS_FILES) $(LISP)
550 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
551 include_option=--etags-include; \
554 include_option=--include; \
557 list='$(SUBDIRS)'; for subdir in $$list; do \
558 if test "$$subdir" = .; then :; else \
559 test ! -f $$subdir/TAGS || \
560 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
563 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
564 unique=`for i in $$list; do \
565 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
567 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
568 END { if (nonempty) { for (i in files) print i; }; }'`; \
570 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
571 test -n "$$unique" || unique=$$empty_fix; \
572 if test $$# -gt 0; then \
573 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
576 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
581 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
582 $(TAGS_FILES) $(LISP)
583 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
584 unique=`for i in $$list; do \
585 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
587 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
588 END { if (nonempty) { for (i in files) print i; }; }'`; \
589 test -z "$(CTAGS_ARGS)$$unique" \
590 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
594 here=`$(am__cd) $(top_builddir) && pwd` \
595 && $(am__cd) $(top_srcdir) \
596 && gtags -i $(GTAGS_ARGS) "$$here"
599 test ! -s cscope.files \
600 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
605 cscope.files: clean-cscope cscopelist-recursive cscopelist
607 cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP)
608 list='$(SOURCES) $(HEADERS) $(LISP)'; \
609 case "$(srcdir)" in \
610 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
611 *) sdir=$(subdir)/$(srcdir) ;; \
613 for i in $$list; do \
614 if test -f "$$i"; then \
615 echo "$(subdir)/$$i"; \
619 done >> $(top_builddir)/cscope.files
622 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
623 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
625 distdir: $(DISTFILES)
626 $(am__remove_distdir)
627 test -d "$(distdir)" || mkdir "$(distdir)"
628 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
629 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
630 list='$(DISTFILES)'; \
631 dist_files=`for file in $$list; do echo $$file; done | \
632 sed -e "s|^$$srcdirstrip/||;t" \
633 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
634 case $$dist_files in \
635 */*) $(MKDIR_P) `echo "$$dist_files" | \
636 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
639 for file in $$dist_files; do \
640 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
641 if test -d $$d/$$file; then \
642 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
643 if test -d "$(distdir)/$$file"; then \
644 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
646 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
647 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
648 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
650 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
652 test -f "$(distdir)/$$file" \
653 || cp -p $$d/$$file "$(distdir)/$$file" \
657 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
658 if test "$$subdir" = .; then :; else \
659 test -d "$(distdir)/$$subdir" \
660 || $(MKDIR_P) "$(distdir)/$$subdir" \
664 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
665 if test "$$subdir" = .; then :; else \
666 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
668 new_distdir=$$reldir; \
669 dir1=$$subdir; dir2="$(top_distdir)"; \
671 new_top_distdir=$$reldir; \
672 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
673 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
674 ($(am__cd) $$subdir && \
675 $(MAKE) $(AM_MAKEFLAGS) \
676 top_distdir="$$new_top_distdir" \
677 distdir="$$new_distdir" \
678 am__remove_distdir=: \
679 am__skip_length_check=: \
680 am__skip_mode_fix=: \
685 $(MAKE) $(AM_MAKEFLAGS) \
686 top_distdir="$(top_distdir)" distdir="$(distdir)" \
688 -test -n "$(am__skip_mode_fix)" \
689 || find "$(distdir)" -type d ! -perm -755 \
690 -exec chmod u+rwx,go+rx {} \; -o \
691 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
692 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
693 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
694 || chmod -R a+r "$(distdir)"
695 @if test -z "$(am__skip_length_check)" && find "$(distdir)" -type f -print | \
696 grep '^...................................................................................................' 1>&2; then \
697 echo 'error: the above filenames are too long' 1>&2; \
701 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
702 $(am__post_remove_distdir)
704 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
705 $(am__post_remove_distdir)
708 tardir=$(distdir) && $(am__tar) | lzip -9 -c >$(distdir).tar.lz
709 $(am__post_remove_distdir)
712 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
713 $(am__post_remove_distdir)
716 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--9} xz -c >$(distdir).tar.xz
717 $(am__post_remove_distdir)
720 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
721 $(am__post_remove_distdir)
724 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
725 $(am__post_remove_distdir)
728 -rm -f $(distdir).zip
729 zip -rq $(distdir).zip $(distdir)
730 $(am__post_remove_distdir)
733 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
734 $(am__post_remove_distdir)
736 # This target untars the dist file and tries a VPATH configuration. Then
737 # it guarantees that the distribution is self-contained by making another
740 case '$(DIST_ARCHIVES)' in \
742 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
744 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
746 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
748 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
750 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
752 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
754 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
756 unzip $(distdir).zip ;;\
758 chmod -R a-w $(distdir); chmod a+w $(distdir)
759 mkdir $(distdir)/_build
760 mkdir $(distdir)/_inst
762 test -d $(distdir)/_build || exit 0; \
763 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
764 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
766 && $(am__cd) $(distdir)/_build \
767 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
768 $(DISTCHECK_CONFIGURE_FLAGS) \
769 && $(MAKE) $(AM_MAKEFLAGS) \
770 && $(MAKE) $(AM_MAKEFLAGS) dvi \
771 && $(MAKE) $(AM_MAKEFLAGS) check \
772 && $(MAKE) $(AM_MAKEFLAGS) install \
773 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
774 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
775 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
777 && chmod -R a-w "$$dc_install_base" \
779 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
780 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
781 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
782 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
783 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
784 } || { rm -rf "$$dc_destdir"; exit 1; }) \
785 && rm -rf "$$dc_destdir" \
786 && $(MAKE) $(AM_MAKEFLAGS) dist \
787 && rm -rf $(DIST_ARCHIVES) \
788 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
791 $(am__post_remove_distdir)
792 @(echo "$(distdir) archives ready for distribution: "; \
793 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
794 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
796 @$(am__cd) '$(distuninstallcheck_dir)' \
797 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
798 || { echo "ERROR: files left after uninstall:" ; \
799 if test -n "$(DESTDIR)"; then \
800 echo " (check DESTDIR support)"; \
802 $(distuninstallcheck_listfiles) ; \
804 distcleancheck: distclean
805 @if test '$(srcdir)' = . ; then \
806 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
809 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
810 || { echo "ERROR: files left in build directory after distclean:" ; \
811 $(distcleancheck_listfiles) ; \
814 check: check-recursive
815 all-am: Makefile $(SCRIPTS)
816 installdirs: installdirs-recursive
818 for dir in "$(DESTDIR)$(bindir)"; do \
819 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
821 install: install-recursive
822 install-exec: install-exec-recursive
823 install-data: install-data-recursive
824 uninstall: uninstall-recursive
827 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
829 installcheck: installcheck-recursive
831 if test -z '$(STRIP)'; then \
832 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
833 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
836 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
837 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
838 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
843 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
846 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
847 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
849 maintainer-clean-generic:
850 @echo "This command is intended for maintainers to use"
851 @echo "it deletes files that may require special tools to rebuild."
852 clean: clean-recursive
854 clean-am: clean-generic clean-local mostlyclean-am
856 distclean: distclean-recursive
857 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
859 distclean-am: clean-am distclean-generic distclean-tags
875 install-dvi: install-dvi-recursive
879 install-exec-am: install-binSCRIPTS
881 $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
882 install-html: install-html-recursive
886 install-info: install-info-recursive
892 install-pdf: install-pdf-recursive
896 install-ps: install-ps-recursive
902 maintainer-clean: maintainer-clean-recursive
903 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
904 -rm -rf $(top_srcdir)/autom4te.cache
906 maintainer-clean-am: distclean-am maintainer-clean-generic
908 mostlyclean: mostlyclean-recursive
910 mostlyclean-am: mostlyclean-generic
920 uninstall-am: uninstall-binSCRIPTS
922 $(MAKE) $(AM_MAKEFLAGS) uninstall-hook
923 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) \
924 cscopelist-recursive ctags-recursive install-am \
925 install-exec-am install-strip tags-recursive uninstall-am
927 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
928 all all-am am--refresh check check-am clean clean-cscope \
929 clean-generic clean-local cscope cscopelist \
930 cscopelist-recursive ctags ctags-recursive dist dist-all \
931 dist-bzip2 dist-gzip dist-hook dist-lzip dist-lzma dist-shar \
932 dist-tarZ dist-xz dist-zip distcheck distclean \
933 distclean-generic distclean-tags distcleancheck distdir \
934 distuninstallcheck dvi dvi-am html html-am info info-am \
935 install install-am install-binSCRIPTS install-data \
936 install-data-am install-dvi install-dvi-am install-exec \
937 install-exec-am install-exec-hook install-html install-html-am \
938 install-info install-info-am install-man install-pdf \
939 install-pdf-am install-ps install-ps-am install-strip \
940 installcheck installcheck-am installdirs installdirs-am \
941 maintainer-clean maintainer-clean-generic mostlyclean \
942 mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \
943 uninstall uninstall-am uninstall-binSCRIPTS uninstall-hook
948 @for p in $(bin_SCRIPTS); do \
949 f="`echo $$p|sed '$(transform)'`"; \
950 fv="$$f-$(APIVERSION)"; \
951 rm -f $(DESTDIR)$(bindir)/$$fv; \
952 echo " $(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv"; \
953 $(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \
957 @for p in $(bin_SCRIPTS); do \
958 f="`echo $$p|sed '$(transform)'`"; \
959 fv="$$f-$(APIVERSION)"; \
960 rm -f $(DESTDIR)$(bindir)/$$fv; \
963 automake: automake.in
965 automake aclocal: Makefile
966 $(AM_V_GEN)rm -f $@ $@.tmp
967 $(AM_V_at)$(do_subst) $(srcdir)/$@.in >$@.tmp
968 $(AM_V_at)chmod +x $@.tmp
969 $(AM_V_at)chmod a-w $@.tmp
970 $(AM_V_at)mv -f $@.tmp $@
973 $(AM_V_GEN)cp $(srcdir)/lib/INSTALL $@
978 for f in x $$MAKEFLAGS; do \
981 *k*) failcom='fail=yes';; \
984 for subdir in $(TEST_SUBDIRS); do \
985 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@) \
990 ################################################################
992 # Ensure tests are world-executable
994 $(am__cd) $(distdir)/tests && chmod a+rx *.test
996 check-coverage-run recheck-coverage-run: all
997 $(mkinstalldirs) $(PERL_COVERAGE_DB)
998 PERL5OPT="$$PERL5OPT $(PERL_COVERAGE_FLAGS)"; export PERL5OPT; \
999 WANT_NO_THREADS=yes; export WANT_NO_THREADS; unset AUTOMAKE_JOBS; \
1000 $(MAKE) $(AM_MAKEFLAGS) `echo $@ | sed 's/-coverage-run//'`
1002 check-coverage-report:
1003 @if test ! -d "$(PERL_COVERAGE_DB)"; then \
1004 echo "No coverage database found in \`$(PERL_COVERAGE_DB)'." >&2; \
1005 echo "Please run \`make check-coverage' first" >&2; \
1008 $(PERL_COVER) $(PERL_COVER_FLAGS) "$(PERL_COVERAGE_DB)"
1010 # We don't use direct dependencies here because we'd like to be able
1011 # to invoke the report even after interrupted check-coverage.
1012 check-coverage: check-coverage-run
1013 $(MAKE) $(AM_MAKEFLAGS) check-coverage-report
1015 recheck-coverage: recheck-coverage-run
1016 $(MAKE) $(AM_MAKEFLAGS) check-coverage-report
1019 rm -rf "$(PERL_COVERAGE_DB)"
1020 clean-local: clean-coverage
1022 .PHONY: check-coverage recheck-coverage check-coverage-run \
1023 recheck-coverage-run check-coverage-report clean-coverage
1025 .PHONY: $(syntax_check_rules)
1026 $(syntax_check_rules): automake aclocal
1027 maintainer-check: $(syntax_check_rules)
1029 @m4_builtin_rx=`echo $(m4_builtins) | sed 's/ /|/g'`; \
1030 m4_macro_rx="\\<($$m4_builtin_rx)\\>|\\<_?(A[CUMHS]|m4)_"; \
1031 if ls tests/*.test | LC_ALL=C grep -E "$$m4_macro_rx"; then \
1032 echo "the names of the tests above can be problematic" 1>&2; \
1033 echo "Avoid test names that contain names of m4 macros" 1>&2; \
1037 sc_diff_automake_in_automake:
1038 @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 28; then \
1039 echo "found too many diffs between automake.in and automake" 1>&2; \
1040 diff -c $(srcdir)/automake.in automake; \
1045 perllibdir="./lib$(PATH_SEPARATOR)$(srcdir)/lib" $(PERL) -c -w automake
1046 perllibdir="./lib$(PATH_SEPARATOR)$(srcdir)/lib" $(PERL) -c -w aclocal
1048 sc_no_brace_variable_expansions:
1049 @if grep -F '$${' $(srcdir)/lib/am/[a-z]*.am | \
1050 grep -F -v '$$$$'; then \
1051 echo "Found too many uses of '\$${' in the lines above." 1>&2; \
1056 @if grep -v '^#' $(srcdir)/lib/am/[a-z]*.am $(srcdir)/tests/*.test | \
1057 grep -E '\<rm ([^-]|\-[^f ]*\>)'; then \
1058 echo "Suspicious 'rm' invocation." 1>&2; \
1062 sc_no_for_variable_in_macro:
1063 @if grep 'for .* in \$$(' $(srcdir)/lib/am/[a-z]*.am; then \
1064 echo 'Use "list=$$(mumble); for var in $$$$list".' 1>&2 ; \
1069 @if grep -n 'mkinstalldirs' $(srcdir)/lib/am/[a-z]*.am | \
1070 grep -F -v '$$(mkinstalldirs)'; then \
1071 echo "Found incorrect use of mkinstalldirs in the lines above" 1>&2; \
1075 sc_pre_normal_post_install_uninstall:
1076 @if grep -E -n '\((PRE|NORMAL|POST)_(|UN)INSTALL\)' \
1077 $(srcdir)/lib/am/[a-z]*.am | \
1078 grep -v ':##' | grep -v ': @\$$('; then \
1079 echo "Found incorrect use of PRE/NORMAL/POST_INSTALL/UNINSTALL in the lines above" 1>&2; \
1084 @if grep -n -w 'undef ' $(srcdir)/automake.in | \
1085 grep -F -v 'undef $$/'; then \
1086 echo "Found undef in automake.in; use delete instead" 1>&2; \
1090 sc_perl_no_split_regex_space:
1091 @if grep -n 'split (/ /' $(srcdir)/automake.in; then \
1092 echo "Found bad split in the lines above." 1>&2; \
1096 sc_cd_in_backquotes:
1097 @if grep -n '^[^#]*` *cd ' $(srcdir)/automake.in \
1098 $(srcdir)/lib/am/*.am; then \
1099 echo "Consider using \$$(am__cd) in the lines above." 1>&2; \
1104 @if grep -n '^[^#]*cd ' $(srcdir)/automake.in \
1105 $(srcdir)/lib/am/*.am | \
1106 grep -v 'echo.*cd ' | \
1107 grep -v 'am__cd =' | \
1108 grep -v '^[^#]*cd [./]' | \
1109 grep -v '^[^#]*cd \$$(top_builddir)' | \
1110 grep -v '^[^#]*cd "\$$\$$am__cwd' | \
1111 grep -v '^[^#]*cd \$$(abs' | \
1112 grep -v '^[^#]*cd "\$$(DESTDIR)'; then \
1113 echo "Consider using \$$(am__cd) in the lines above." 1>&2; \
1117 sc_perl_at_uscore_in_scalar_context:
1118 @if grep -Hn '[^@_A-Za-z0-9][_A-Za-z0-9]*[^) ] *= *@_' $(srcdir)/automake.in; then \
1119 echo "Using @_ in a scalar context in the lines above." 1>&2; \
1123 sc_perl_local_no_parens:
1124 @if grep '^[ \t]*local *(' $(srcdir)/automake.in; then \
1125 echo "Don't use \`local' with parens: use several \`local' above." >&2; \
1130 @if grep -v '^[ \t]*local \$$_;' $(srcdir)/automake.in | \
1131 grep '^[ \t]*local [^*]'; then \
1132 echo "Please avoid \`local'." 1>&2; \
1136 sc_AMDEP_TRUE_in_automake_in:
1137 @if grep '@AMDEP''_TRUE@' $(srcdir)/automake.in; then \
1138 echo "Don't put AMDEP_TRUE substitution in automake.in" 1>&2; \
1142 sc_tests_make_without_am_makeflags:
1143 @if grep '^[^#].*(MAKE) ' $(srcdir)/lib/am/*.am $(srcdir)/automake.in |\
1144 grep -v 'AM_MAKEFLAGS'; then \
1145 echo 'Use $$(MAKE) $$(AM_MAKEFLAGS).' 1>&2; \
1149 sc_tests_plain_make:
1150 @if grep -v '^#' $(srcdir)/tests/*.test | $(EGREP) ':[ ]*make( |$$)'; then \
1151 echo 'Do not run "make" in the above tests. Use "$$MAKE" instead.' 1>&2; \
1155 sc_tests_plain_autoconf:
1156 @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[ ]*autoconf'; then \
1157 echo 'Do not run "autoconf" in the above tests. Use "$$AUTOCONF" instead.' 1>&2; \
1161 sc_tests_plain_autoupdate:
1162 @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[ ]*autoupdate'; then \
1163 echo 'Do not run "autoupdate" in the above tests. Use "$$AUTOUPDATE" instead.' 1>&2; \
1167 sc_tests_plain_automake:
1168 @if grep -v '^#' $(srcdir)/tests/*.test | grep -E ':[ ]*automake([^:]|$$)'; then \
1169 echo 'Do not run "automake" in the above tests. Use "$$AUTOMAKE" instead.' 1>&2; \
1173 sc_tests_here_document_format:
1174 @if grep '<<' $(srcdir)/tests/*.test | grep -v 'END' | grep -v 'EOF'; then \
1175 echo 'Use here documents with "END" and "EOF" only, for greppability.' 1>&2; \
1179 sc_tests_Exit_not_exit:
1180 @found=false; for file in $(srcdir)/tests/*.test; do \
1181 res=`sed -n -e '/^#/d; /^\$$PERL/d' -e '/<<.*END/,/^END/b' \
1182 -e '/<<.*EOF/,/^EOF/b' -e '/exit [$$0-9]/p' $$file`; \
1183 if test -n "$$res"; then \
1184 echo "$$file:$$res"; \
1189 echo 'Do not call plain "exit", use "Exit" instead, in above tests.' 1>&2; \
1193 sc_tests_automake_fails:
1194 @if grep -v '^#' $(srcdir)/tests/*.test | grep '\$$AUTOMAKE.*&&.*[eE]xit'; then \
1195 echo 'Use AUTOMAKE_fails + grep to catch automake failures in the above tests.' 1>&2; \
1199 sc_tests_plain_aclocal:
1200 @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[ ]*aclocal'; then \
1201 echo 'Do not run "aclocal" in the above tests. Use "$$ACLOCAL" instead.' 1>&2; \
1205 sc_tests_plain_perl:
1206 @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[ ]*perl'; then \
1207 echo 'Do not run "perl" in the above tests. Use "$$PERL" instead.' 1>&2; \
1211 sc_tests_required_after_defs:
1212 @for file in $(srcdir)/tests/*.test; do \
1213 if out=`sed -n '/defs/,$${/required=/p;}' $$file`; test -n "$$out"; then \
1214 echo 'Do not set "required" after sourcing "defs" in '"$$file: $$out" 1>&2; \
1219 sc_tests_overriding_macros_on_cmdline:
1220 @if grep -E '\$$MAKE .*(SHELL=.*=|=.*SHELL=)' $(srcdir)/tests/*.test; then \
1221 echo 'Rewrite "$$MAKE foo=bar SHELL=$$SHELL" as "foo=bar $$MAKE -e SHELL=$$SHELL"' 1>&2; \
1222 echo ' in the above lines, it is more portable.' 1>&2; \
1225 @if sed 's/DESTDIR=[^ ]*//; s/SHELL=[^ ]*//; s/V=[^ ]*//' $(srcdir)/tests/*.test | \
1226 grep '\$$MAKE .*=' ; then \
1227 echo 'Rewrite "$$MAKE foo=bar" as "foo=bar $$MAKE -e" in the above lines,' 1>&2; \
1228 echo 'it is more portable.' 1>&2; \
1231 @if grep 'SHELL=.*\$$MAKE' $(srcdir)/tests/*.test; then \
1232 echo '$$MAKE ignores the SHELL envvar, use "$$MAKE SHELL=$$SHELL" in' 1>&2; \
1233 echo 'the above lines.' 1>&2; \
1237 sc_tests_plain_sleep:
1238 @if grep -E '\bsleep +[12345]\b' $(srcdir)/tests/*.test; then \
1239 echo 'Do not use "sleep x" in the above tests. Use "$$sleep" instead.' 1>&2; \
1243 sc_tests_plain_egrep_fgrep:
1244 @if grep -E '\b[ef]grep\b' $(srcdir)/tests/*.test ; then \
1245 echo 'Do not use egrep or fgrep in test cases. Use $$FGREP or $$EGREP.' 1>&2; \
1248 @if grep -E '\b[ef]grep\b' $(srcdir)/lib/am/*.am $(srcdir)/m4/*.m4; then \
1249 echo 'Do not use egrep or fgrep in the above files, they are not portable.' 1>&2; \
1253 sc_ensure_testsuite_has_run:
1254 @if test ! -f tests/test-suite.log; then \
1255 echo "Run \`env keep_testdirs=yes make check' before \`maintainer-check'" >&2; \
1258 .PHONY: sc_ensure_testsuite_has_run
1260 sc_tests_logs_duplicate_prefixes: sc_ensure_testsuite_has_run
1261 @if grep -E '(warning|error):.*(warning|error):' tests/*.log; then \
1262 echo 'Duplicate warning/error message prefixes seen in above tests.' >&2; \
1266 sc_tests_makefile_variable_order: sc_ensure_testsuite_has_run
1267 @for file in `find tests -name Makefile.in -print`; do \
1269 -e :x -e 's/#.*//' \
1270 -e '/\\\\$$/{' -e N -e 'b x' -e '}' \
1272 -e '/^ *[a-zA-Z_@]\{1,\} *=/p' $$file`; \
1273 if test -n "$$latevars"; then \
1274 echo 'Ensure variables are expanded before rules' >&2; \
1275 echo "Variables are expanded too late in $$file:" >&2; \
1276 echo "$$latevars" | sed 's/^/ /' >&2; \
1281 sc_tests_PATH_SEPARATOR:
1282 @if grep -E '\bPATH=.*:.*' $(srcdir)/tests/*.test ; then \
1283 echo "Use \`\$$PATH_SEPARATOR', not \`:', in PATH definitions above." 1>&2; \
1288 @if grep 'mkdir_p' $(srcdir)/automake.in \
1289 $(srcdir)/lib/am/*.am $(srcdir)/tests/*.test; then \
1290 echo 'Do not use mkdir_p in the above files, use MKDIR_P.' 1>&2; \
1295 @if test `grep -E '^[^#]*@[A-Za-z_0-9]+@' aclocal | wc -l` -ne 0; then \
1296 echo "Unresolved @...@ substitution in aclocal" 1>&2; \
1299 @if test `grep -E '^[^#]*@[A-Za-z_0-9]+@' automake | wc -l` -ne 0; then \
1300 echo "Unresolved @...@ substitution in automake" 1>&2; \
1304 sc_unquoted_DESTDIR:
1305 @if grep -E "[^\'\"]\\\$$\(DESTDIR" $(srcdir)/lib/am/*.am; then \
1306 echo 'Suspicious unquoted DESTDIR uses.' 1>&2 ; \
1311 @if grep ' ' $(srcdir)/doc/automake.texi; then \
1312 echo 'Do not use tabs in the manual.' 1>&2; \
1317 @if grep -E '([^@]|^)@([ ][^@]|$$)' $(srcdir)/doc/automake.texi; \
1319 echo 'Unescaped @.' 1>&2; \
1323 git-dist: maintainer-check
1324 @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
1325 echo "NEWS not updated; not releasing" 1>&2; \
1328 $(MAKE) $(AM_MAKEFLAGS) distcheck
1329 $(am__cd) $(srcdir) && git commit -a -s && \
1330 git tag -s "v$(VERSION)" -m "Release $(VERSION)"
1332 git-release: git-dist
1333 case $(VERSION) in \
1334 *[a-z]) dest=alpha;; \
1337 $(srcdir)/lib/gnupload $(GNUPLOADFLAGS) \
1338 --to $$dest.gnu.org:automake $(DIST_ARCHIVES)
1341 thisver="v$(VERSION)"; \
1342 if test -z "$$OLDVERSION"; then \
1343 prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
1344 else prevno="$$OLDVERSION"; fi; \
1345 prevver=v$$prevno; \
1346 git diff $$prevver..$$thisver $(PACKAGE) \
1347 > $(PACKAGE)-$$prevno-$(VERSION).diff
1350 ($(am__cd) $(distdir) && \
1351 find . -print | xargs pathchk -p); \
1353 find $(distdir) -type d '!' -perm -200 -exec chmod u+w {} ';'; \
1354 rm -rf $(distdir); \
1358 rm -rf Fetchdir > /dev/null 2>&1
1360 ($(am__cd) Fetchdir && \
1361 $(WGET_SV_GIT_CF)config.guess -O config.guess && \
1362 $(WGET_SV_GIT_CF)config.sub -O config.sub && \
1363 $(WGET_SV_CVS)texinfo/texinfo/doc/texinfo.tex -O texinfo.tex && \
1364 $(WGET_SV_GIT_GL)doc/INSTALL -O INSTALL && \
1365 $(WGET_GCC)config-ml.in -O config-ml.in && \
1366 $(WGET_GCC)symlink-tree -O symlink-tree)
1367 @stat=0; for file in $(FETCHFILES); do \
1368 if diff -u $(srcdir)/lib/$$file Fetchdir/$$file \
1369 >>Fetchdir/update.patch 2>/dev/null; then :; \
1372 echo "Updating $(srcdir)/lib/$$file ..."; \
1373 cp Fetchdir/$$file $(srcdir)/lib/$$file; \
1376 test $$stat = 0 || \
1377 echo "See Fetchdir/update.patch for a log of the changes."; \
1381 @am=`wc -l < automake` && \
1382 acl=`wc -l < aclocal` && \
1383 pmfiles="lib/Automake/*.pm" && \
1384 if test . != '$(srcdir)'; then pmfiles="$$pmfiles $(srcdir)/lib/Automake/*.pm"; \
1386 pm=`cat $$pmfiles | wc -l` && \
1387 dot_am_files=`ls -1 $(srcdir)/lib/am/*.am | grep -v Makefile.am` && \
1388 amf=`echo "$$dot_am_files" | wc -l` && \
1389 aml=`cat $$dot_am_files | wc -l` && \
1390 m4f=`ls -1 $(srcdir)/m4/*.m4 | wc -l` && \
1391 m4l=`cat $(srcdir)/m4/*.m4 | wc -l` && \
1392 doc_text=`$(am__cd) doc && LC_ALL=C pstops 0 automake.ps unused.ps 2>&1` && \
1393 echo "$$doc_text" && \
1394 rm -f doc/unused.ps && \
1395 doc=`echo "$$doc_text" | sed -n 's/.*Wrote \([1-9][0-9]*\) pages.*/\1/p'` && \
1396 tests="tests/*.test"; \
1397 if test . != '$(srcdir)'; then tests="$$tests $(srcdir)/tests/*.test"; \
1399 t=`ls -1 $$tests | wc -l` && \
1400 tgen=`grep 'GENERATED AUTOMATICALLY' $$tests | wc -l` && \
1401 today=`date +%Y-%m-%d` && \
1402 echo "add this to the table in doc/automake.texi after verification:" && \
1403 printf '@item %s @tab %-6s @tab %4d @tab %4d @tab %4d @tab %4d %-4s @tab %4d %-4s @tab %3d @tab %d %-4s\n' \
1404 $$today $(VERSION) $$am $$acl $$pm $$aml "($$amf)" $$m4l "($$m4f)" $$doc $$t "($$tgen)"
1405 .PHONY: release-stats
1407 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1408 # Otherwise a system limit (for SysV at least) may be exceeded.