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