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