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