automake.in


Log

Author Commit Date CI Message
Alexandre Duret-Lutz 26169ba6 2005-01-03T21:32:19 Fix handling of per-target flags in link rules. * automake.in (define_per_target_linker_variable): New function. (handle_programs, handle_ltlibraries): Use it. (%link_languages): New map. (register_language): Fill it. * lib/am/ltlibrary.am (%LTLIBRARY%): Do not append $(%XLTLIBRARY%_LDFLAGS) to the command, this is now done by define_per_target_linker_variable if needed. * lib/am/program.am (%PROGRAM%%EXEEXT%): Likewise with $(%XPROGRAM%_LDFLAGS). * doc/automake.texi (Program and Library Variables): Mention AM_LDFLAGS and AM_LIBTOOLFLAGS in the definition of maude_LDFLAGS and maude_LIBTOOLFLAGS. * tests/libtool9.test: New file. * tests/Makefile.am (TESTS): Add it. * NEWS: Explain the backward incompatibility. Report from Akim Demaille.
Alexandre Duret-Lutz 25eca5c6 2005-01-01T17:19:14 * doc/automake.texi (Requirements) <AC_CONFIG_FILES>: Discuss specifications with shell variables. (Optional) <AC_CONFIG_HEADERS, AC_CONFIG_LINKS>: Point to AC_CONFIG_FILES for this explanation. * automake.in (substitute_ac_subst_variables_worker, substitute_ac_subst_variables): Mew functions. (rewrite_inputs_into_dependencies): Use substitute_ac_subst_variables to ignore dependencies that contain unAC_SUBSTed shell variables. (handle_configure): Likewise, do not output rules for AC_CONFIG_HEADERS, AC_CONFIG_FILES, and AC_CONFIG_LINKS targets that unAC_SUBSTed contain shell variables. * tests/autohdr4.test: Use an AC_SUBST variable in a specification. * tests/output11.test, tests/output12.test: New files. * tests/Makefile.am (TESTS): Add output11.test and output12.test.
Alexandre Duret-Lutz 81eb4c78 2005-01-01T12:28:44 * aclocal.in (parse_arguments, write_aclocal): Bump copyright year. * automake.in ($gen_copyright, version): Likewise.
Alexandre Duret-Lutz ae6b80f3 2004-12-30T23:10:52 Support for `install-dvi', `install-html', `install-ps', and `install-pdf', as recently introduced into the GNU Coding Standard. * automake.in (handle_factored_dependencies): Reject uninstall-dvi-local, uninstall-html-local, uninstall-info-local, uninstall-ps-local, and uninstall-pdf-local. Allow install-info-local even when no-installinfo is not used. (handle_data): Allow datarootdir, dvidir, htmldir, pdfdir, and psdir. (%standard_prefix): Declare these new standard directory variables. * doc/automake.texi (Texinfo, Third-Party Makefiles): Document install-dvi, install-html, install-pdf, and install-ps. (Extending): Document install-local-dvi, install-local-html, install-local-info, install-local-pdf, and install-local-ps. * lib/Automake/Rule.pm (%dependencies): Add new install rules, and remove uninstall-info. * /cvs/automake/automake/lib/am/texinfos.am (install-dvi, install-dvi-am, install-dvi-recursive, install-html, install-html-am, install-html-recursive, install-pdf, install-pdf-am, install-pdf-recursive, install-ps, install-ps-am, install-ps-recursive, uninstall-dvi-am, uninstall-html-am, uninstall-pdf-am, uninstall-ps-am): New rules. (uninstall-info): Delete. * tests/txinfo21.test: Augment to check for these new rules. * tests/exdir2.test: Do not use `htmldir' as example of undefined directory. * tests/overrid.test: Do not be fooled by install-ps and install-html. * tests/txinfo10.test: Do not grep for uninstall-info-recursive.
Alexandre Duret-Lutz 7c3a688e 2004-12-27T21:25:42 * automake.in (Preprocessed Fortran): Fix the definition of FCLINK.
Alexandre Duret-Lutz 4b354511 2004-12-27T20:38:22 Declare recursive install targets as dependencies of `.MAKE', so that `make -n install' works with BSD Make too.
Alexandre Duret-Lutz 9c0c49fb 2004-12-12T23:39:02 * automake.in (check_user_variables): New function, extracted from ... (handle_languages): ... here. (handle_languages, define_compiler_variable, define_link_variable): Honore LIBTOOLFLAGS. (handle_single_transform): Check _LIBTOOLFLAGS in addition to other per-target flags for Libtool objects. (handle_libtool): Warn if LIBTOOLFLAGS is defined. * doc/automake.texi (Libtool Flags, Program and Library Variables, Flag Variables Ordering): Document LIBTOOLFLAGS. * tests/libtool7.test: Check basic support for LIBTOOLFLAGS. * tests/libtool8.test: Make sure Automake warns about LIBTOOLFLAGS definitions. * tests/subobj9.test: Adjust.
Alexandre Duret-Lutz 7eaf5f45 2004-12-08T22:00:50 * lib/Automake/FileUtils.pm (dir_has_case_matching_file, reset_dir_cache): New functions. * automake.in (handle_dist, require_file_internal): Use them, so that CHANGELOG is not confused with ChangeLog on case-insensitive case-preserving file systems. * tests/hfs.test: New file. * tests/Makefile.am (TESTS): Add hfs.test.
Alexandre Duret-Lutz 1ec52bab 2004-11-22T00:03:29 * aclocal.in (parse_arguments): Diagnose abbreviation ambiguous with --help or --version. * automake.in (parse_arguments): Likewise. * tests/aclocal.test, tests/automake.test: Check this. Report from Eric Blake.
Alexandre Duret-Lutz d6da85a6 2004-11-21T23:31:45 * automake.in (parse_arguments): Diagnose empty arguments, options with missing argument, and support `--'. * aclocal.in (parse_arguments): Diagnose options with missing argument. * tests/aclocal.test: More checks. * tests/automake.test: New file. * tests/postprog.test: Use `--' for fun. * tests/Makefile.am (TESTS): Add automake.test. Report from Eric Blake.
Alexandre Duret-Lutz d21ec656 2004-10-21T21:37:41 * automake.in (get_object_extension): The extension to use is know by the caller, and cannot be selected by looking only at the target name. Simplify this function to simply conditionally prepend $U to the given extension. (handle_programs, handle_libraries, handle_ltlibraries): Hard-code the extension to use. This way Automake won't mistake a program named `foo.la' as a libtool library. * tests/primary3.test: New file. * tests/Makefile.am (TESTS): Add primary3.test.
Alexandre Duret-Lutz 8e1923fe 2004-10-10T15:52:02 * m4/as.m4 (AM_PROG_AS): Check dependency tracking mode for CCAS. * automake.in (cppasm): Use the dependency tracking more for CCAS. * doc/automake.texi (Assembly Support): Note that *.S are preprocessed with CPPFLAGS.
Alexandre Duret-Lutz ee0d3a52 2004-10-10T15:35:09 * automake.in (Languages): Split .s (asm) and .S (cppasm) into separate languages. Make cppasm (Preprocessed Assembler) aware of CPPFLAGS, AM_CPPFLAGS. (handle_languages): Fix typo. (lang_cppasm_rewrite): New function.
Alexandre Duret-Lutz f5bf5978 2004-09-28T22:02:34 * automake.in (handle_languages, define_compiler_variable): Output Libtool's --tag= option before --mode=compile, because depcomp use --mode=compile as end marker for libtool arguments. (define_linker_variable): Likewise before --mode=link, for uniformity. * tests/pr307.test: Make sure dependency files are updated. That was not the case because depcomp thought `--tag=CC' was the compiler to get dependencies from. Report from Пухальский Юрий Андреевич.
Akim Demaille 0377ad6a 2004-09-19T11:46:41 * AUTHOR, automake.in, aclocal.in: Add Alexandre Duret-Lutz as author.
Alexandre Duret-Lutz 353530b0 2004-09-10T19:29:54 * lib/Automake/Channels.pm (_print_message): Handle uniq_part with arbitrary string. * automake.in (lang_c_rewrite): Set uniq_part so that the AM_PROG_CC_C_O diagnostic is output only once for subdir objects and only once for objects with per-target flags.
Alexandre Duret-Lutz 051d4878 2004-09-10T19:03:37 * automake.in (lang_c_rewrite): Print files and locations for AM_PROG_CC_C_O errors. (handle_single_transform): Pass $var to &$subr so it can print locations.
Alexandre Duret-Lutz bf1252ee 2004-09-07T21:16:22 * automake.in (handle_clean): Sort rm commands output for mostlyclean-generic, clean-generic, distclean-generic, and maintainer-clean-generic. Report from Bob Friesenhahn.
Alexandre Duret-Lutz fc0c91c3 2004-09-07T21:03:32 * automake.in (lang_c_rewrite): Do not require AM_PROG_CC_C_O for libtool objects. (handle_single_transform): Pass nonansi_obj to &$subr so lang_c_rewrite can distinguish libtool objects. * tests/libtool7.test: Use subdir-objects without using AM_PROG_CC_C_O. Report from Gary V. Vaughan and Patrick Welche.
Alexandre Duret-Lutz 2d539c9a 2004-09-07T19:52:47 * automake.in ($PATH_PATTERN): Add `+'.
Alexandre Duret-Lutz 9fcdf1df 2004-08-08T19:05:13 * automake.in (%am_file_cache): New hash. (make_paragraphs): Cache .am files with comments stripped to save some useless input and substitutions.
Alexandre Duret-Lutz 9c3d8bd4 2004-08-08T17:11:24 * lib/Automake/Variable.pm (%_primary_dict): New hash. (_new, variable_delete): Update %_primary_dict. (variables): Accept an optional $suffix argument. * automake.in (check_typos, am_primary_prefixes): Use that optional argument to restrict the loops over the variables we are interested in.
Alexandre Duret-Lutz 36c5702d 2004-08-05T22:30:41 Speed up make_paragraphs. * automake.in (handle_languages): Always define SUBDIROBJ, DERIVED-EXT, and DIST_SOURCE, because the new transform() will abort on unknown tokens. (transform): Rewrite with different semantics. (make_paragraphs): Make a single pass over the paragraph to transform all template tokens instead of doing as much passes as possible token.
Alexandre Duret-Lutz 4f0ef2ad 2004-08-05T21:13:54 * automake.in ($libtool_new_api): New variable. (handle_libtool): Do not libtool's aux files if $libtool_new_api. (scan_autoconf_traces) <LT_SUPPORTED_TAG>: Set $libtool_new_api. (scan_autoconf_traces) <AC_REQUIRE_AUX_FILE>: Remember only the first location for required files.
Alexandre Duret-Lutz 1e840d7c 2004-08-03T23:02:56 Support AC_REQUIRE_AUX_FILE, and fix requirement of AM_PROG_CC_C_O. * automake.in (%required_aux_file): New hash. (handle_single_transform, lang_c_rewrite): Do note explicitly require 'compile', this is now an internal detail of AM_PROG_CC_C_O. (scan_autoconf_traces): Trace AC_REQUIRE_AUX_FILE and fill %required_aux_file. (scan_autoconf_files): Require all %required_aux_file instead of explicitly requiring install-sh and missing. (generate_makefile): Do not require config.sub and config.guess. (handle_single_transform): Pass $have_per_exec_flags to &lang_c_rewrite. * configure.ac, m4/init.m4: Require Autoconf 2.59a. * doc/automake.texi (Optional): Document AC_REQUIRE_AUX_FILE. (Program and Library Variables, Options, Public macros): AC_PROG_CC_C_O is required when per-target flags or subdir-objects are used with C sources. * m4/minuso.m4: Require `compile' using AC_REQUIRE_AUX_FILE. * m4/missing.m4: Require `missing' similarly. * tests/acsubst2.test, tests/distcom2.test, tests/distcom6.test, tests/specflg.test, tests/specflg2.test, tests/specflg3.test, tests/specflg6.test, tests/specflg7.test, tests/specflg8.test, tests/specflg9.test, tests/subobj7.test, tests/target-cflags.test, tests/yacc6.test: Fix to use AM_PROG_CC_C_O.
Alexandre Duret-Lutz 6965500c 2004-08-03T20:20:07 * automake.in (yacc_lex_finish_helper): Fix definition of YLWRAP when ylwrap is installed in a default aux dir found in a parent package. * tests/subpkg.test: Augment to check that YLWRAP is installed properly. * doc/automake.texi (Yacc and Lex): ylwrap is not sought is the current directory. Report from Norman Gray.
Alexandre Duret-Lutz 1947468f 2004-08-01T22:16:03 * automake.in (AC_CANONICAL_HOST, AC_CANONICAL_SYSTEM): Replace by ... (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_SYSTEM): ... these. (scan_autoconf_traces): Scan for the latter three macros instead of the former two. (make_paragraphs): Adjust definitions of %BUILD%, %HOST%, and %TARGET%. * tests/hosts.test: New file. * tests/Makefile.am (TESTS): Add hosts.test. Report and test case from Norman Gray.
Alexandre Duret-Lutz 16e08014 2004-08-01T17:31:22 Disable Lex and Yacc rules whenever possible if AM_MAINTAINER_MODE is used and maintainer-mode disabled. * automake.in (Automake::struct): Define nodist_specific. Set it in languages yacc, yaccxx, lex, and lexxx. (register_language): Default nodist_specific to 0. (handle_single_transform): Honor nodist_specific. * lib/am/yacc.am (am__skipyacc): Define this in maintainer mode. (%EXT%%DERIVED-EXT%, %OBJ%): Use $(am__skipyacc) to disable these rules when needed. * lib/am/lex.am (am__skiplex): Define this in maintainer mode. (%EXT%%DERIVED-EXT%, %OBJ%): Use $(am__skiplex) to disable these rules when needed. * tests/mmodely.test: New file. * tests/pr204.test: Augment to check AM_MAINTAINER_MODE and nodist_ parsers. * tests/Makefile.am (TESTS): ADd mmodely.test. * doc/automake.texi (Yacc and Lex): Note dependence on maintainer mode.
Alexandre Duret-Lutz e0ee8082 2004-07-28T20:05:15 * automake.in (generate_makefile): Update misleading comment about libtool scripts.
Alexandre Duret-Lutz 55846d15 2004-07-25T21:34:41 * m4/mkdirp.m4 (AM_PROG_MKDIR_P): Remove `.' from the mkdir_p definition, it causes `make install' to fails for user with no right to write in the source-tree. * automake.in (handle_configure): Do not use mkdir_p in the definition for $(mkdir_p). Report from Harlan Stenn.
Alexandre Duret-Lutz 2b294d11 2004-07-21T17:44:06 * automake.in (check_directory): Quote $dir in regexp.
Alexandre Duret-Lutz 5929339c 2004-07-17T10:52:19 * lib/am/distdir.am (distdir): Always use $(DIST_SUBDIRS) now that it is always defined. This is less confusing for users reading the generated Makefiles. * automake.in (handle_dist): Do not substitute DIST_SUBDIR_NAME.
Alexandre Duret-Lutz f74dc248 2004-07-14T14:49:09 * automake.in (target_hook): Accept %transform as last argument. (define_objects_from_sources): Pass %transform to target_hook. (handle_source_transform): Define DIST_SOURCE to tell whether a the source of a file is distributed or not. (lang_yacc_target_hook): Check DIST_SOURCE, and do not distribute the generated header if the .y source is not distributed. * tests/pr204.test: Use AM_YFLAGS = -d and make sure generated headers are not distributed.
Alexandre Duret-Lutz 68acb54a 2004-07-11T22:07:25 For PR automake/428: Support for conditionally defined -hook and -local rules. * automake.in (user_phony_rule): New function. (handle_dist, handle_install, handle_all, do_check_merge_target, handle_factored_dependencies): Use user_phony_rule before adding a user -hook or -local rule as a dependency to ensure it is always defined an phony. * tests/cond37.test, tests/condhook.test: New files. * tests/Makefile.am (TESTS): Add them. Report from Simon Josefsson and Nik A. Melchior.
Alexandre Duret-Lutz 16af3fd3 2004-05-22T21:55:47 * automake.in (scan_autoconf_traces): Trace for LT_SUPPORTED_TAG instead of AC_LIBTOOL_TAGS, since that how CVS Libtool has been changed. * tests/libtool3.test: Do not grep for --tag=CC, since CVS Libtool (unlike Libtool 1.5) does not has any CC tag.
Alexandre Duret-Lutz a91f0ec9 2004-05-22T14:23:54 * automake.in (handle_libraries): Make the diagnostic about non standard libraries a warning in foreign packages. This is already the case in handle_ltlibraries. (handle_libraries, handle_ltlibraries): Suggest a standard library name in the diagnostic, to help newcomers. * tests/stdlib.test, tests/stdlib2.test: Check for these suggestions.
Alexandre Duret-Lutz bf7ab094 2004-05-22T07:19:37 Check directory names for unportable names. Shaking the code to check this also led to the removal of the no-"/"-in-SUBDIRS restriction, and a fix to _do_recursive_traversal. * automake.in (check_directory): New function extracted from handle_subdirs, and augmented to check for reserved W32/DOS name. (check_directories_in_var): New function. (handle_subdirs): Call check_directories_in_var. Doing so also suppress the restriction that SUBDIRS should not contain slashes. (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Call check_directory to ensure the argument exists and is safe. * doc/automake.texi (Top level): Do not say that src/subdir cannot be put in SUBDIRS. (Dist): Mention that distdir and top_distdir can be absolute. * lib/Automake/Variable.pm (_do_recursive_traversal) Support undefined $fun_collect, and fix two bugs introduced with skip_ac_subst on 2004-03-07. * lib/am/distdir.am (distdir): Use absolute distdir and top_distdir when recursing, because we can no longer prepend only `..' in case of SUBDIRS with `/'. * tests/auxdir4.test, tests/subdir9.test: New files. * tests/Makefile.am (TESTS): Add auxdir4.test. * tests/cond2.test, tests/subdir7.test: Augment to check location in diagnostics.
Alexandre Duret-Lutz 0170ed2e 2004-05-15T21:01:04 * automake.in (handle_dist): Always define DIST_SUBDIRS, even when the no-dist or cygnus options are used. * tests/clean2.test: New file. * tests/Makefile.am (TESTS): Add clean2.test. Report from Daniel Jacobowitz.
Alexandre Duret-Lutz a1ede7d0 2004-05-14T22:44:42 * automake.in (parse_arguments, MAIN): Give more precise diagnostics when not input file is found. * tests/output5.test: Adjust. Suggested by Jens Petersen.
Alexandre Duret-Lutz 84874b00 2004-05-14T20:13:53 * lib/am/libs.am (AR, ARFLAGS): Move these definition ... * automake.in (handle_libraries): ... here, so that they are output even for EXTRA_LIBRARIES. * tests/ar2.test: New file. * tests/Makefile.am (TESTS): Add it. Report from Kevin Ryde.
Alexandre Duret-Lutz 7ba1b57c 2004-05-13T22:02:42 * automake.in (generate_makefile): Do not output Makefile.in on errors. * tests/werror2.test: New file. * tests/Makefile.am (TESTS): Add werror2.test. * tests/substtarg.test, tests/cond36.test, tests/backsl4.test: Adjust to run automake with -Wno-error when the output is expected in spite of the error. Report from Harlan Stenn.
Alexandre Duret-Lutz 1bc9e9b7 2004-05-13T20:38:19 * automake.in (handle_source_transform): Also check for a $(srcdir)/old_source rule when computing the default source name. Propagate this $(srcdir) prefix in Automake variables. * tests/ltlibsrc.test (noinst_LTLIBRARIES): Explicitly refer to $(srcdir)/zoo_d_old2_la.c. This fixes another failure with BSD Make.
Alexandre Duret-Lutz fb6b99dc 2004-04-24T19:42:21 * automake.in (check_typos): Clarify the diagnostic. * tests/warnopts.test: Adjust.
Alexandre Duret-Lutz 014ec4f2 2004-04-23T21:57:44 For PR automake/414: Introduce option filename-length-max=99. * doc/automake.texi (Options): Document it. * configure.ac (AM_INIT_AUTOMAKE): Use it. * lib/Automake/Options.pm (_process_option_list): Recognize it. * automake.in (handle_dist): Set FILENAME_FILTER. * lib/am/distdir.am (distdir) [FILENAME_FILTER]: Diagnose long filenames. * tests/fn99.test: New file. * tests/Makefile.am (TESTS): Add fn99.test.
Alexandre Duret-Lutz 6408f2b0 2004-04-17T18:46:06 Fix PR automake/49: * automake.in (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Diagnose calls to AC_CONFIG_AUX_DIR followings calls to AM_INIT_AUTOMAKE. * tests/auxdir.test, tests/auxdir2.test, tests/lex5.test, tests/mdate3.test, tests/multlib.test, tests/reqd2.test, tests/symlink.test, tests/txinfo8.test, tests/txinfo22.test, tests/yacc6.test, tests/yacc8.test: Fix to call AC_CONFIG_AUX_DIR before AM_INIT_AUTOMAKE. * tests/auxdir3.test: New file (exercise this diagnostic). * tests/Makefile.am (TESTS): Add auxdir3.test.
Alexandre Duret-Lutz 35d2d067 2004-04-12T22:16:22 * automake.in ($automake_needs_to_reprocess_all_files): Remove. ($automake_will_process_aux_dir): New variable. (scan_autoconf_traces): Reorder @input_files so that the Makefile that distributes aux files is processed last. This way we do not have to process all files twice using $automake_will_process_aux_dir. (require_file_internal): Suggest a full run of automake when appropriate. (MAIN): Remove the loop on $automake_needs_to_reprocess_all_files. * tests/distcom7.test: New file. * tests/reqd2.test: Do not check for the "running more than two" message. * tests/Makefile.am (TESTS): Add distcom7.test.
Alexandre Duret-Lutz ce228aea 2004-04-12T19:19:16 * automake.in (@config_aux_path, $config_aux_dir): Rename as ... ($config_aux_dir, $am_config_aux_dir): ... these. ($config_aux_dir_set_in_configure_in): Rename as ... ($config_aux_dir_set_in_configure_ac): ... this. (%require_file_found): Rename as ... (%required_file_not_found): ... this. (handle_languages, handle_texinfo_helper, handle_dist, handle_configure, handle_emacs_lisp, handle_python, scan_autoconf_traces, yacc_lex_finish_helper): Adjust to new names. (scan_autoconf_traces): Call locate_aux_dir. (locate_aux_dir): New function. (@require_file_paths): Remove, not used anymore. (require_file_internal): Look files in only one directory (instead of @require_file_internal) passed in argument. (require_file, require_conf_file): Pass the destination directory to require_file_internal.
Alexandre Duret-Lutz 2fb66730 2004-04-10T17:18:01 * aclocal.in, automake.in, configure.ac, Makefile.am, tests/aclocal.in, tests/automake.in, tests/defs.in: Use PATH_SEPARATOR from autoconf instead of ':'.
Alexandre Duret-Lutz 1b0f49a7 2004-04-09T22:21:57 * automake.in (handle_lib_objects): Pass the condition of the variable definition to handle_LIBOBJS and handle_ALLOCA, not the aggregated conditions. * tests/Makefile.am (TESTS): Add libobj14.test. * tests/libobj14.test: New file. Report from Bill Davidson.
Alexandre Duret-Lutz 9590e75c 2004-04-02T07:14:27 Better support for Fortran 9x. * automake.in: Add "fc" and "ppfc" languages for Fortran 9x. * doc/automake.texi (Fortran 9x Support): New section. * lib/Automake/Variable.pm (%_ac_macro_for_var): Add AC_PROG_FC. * tests/compile_f90_c_cxx.test: New file. * tests/ext.test: Add AC_PROG_FC. * tests/f90only.test: New file. * tests/link_f90_only.test: New file. * tests/Makefile.am (TESTS): Add new tests.
Alexandre Duret-Lutz b2ae2f6b 2004-03-14T07:26:43 * automake.in (handle_texinfo_helper): Typos in comment.
Alexandre Duret-Lutz 9a0d838f 2004-03-07T12:36:54 Fix for PR automake/285: * automake.in (handle_ltlibraries): Keep track of installation directories for each condition, then define a $(am_TARGET_rpath) variable to hold the -rpath flags of Libtool libraries conditionally installed in different directories. * lib/Automake/DisjConditions.pm (merge): New function. * tests/libtool6.test: Adjust. * tests/libtool8.test: New file. * tests/Makefile.am (TEST): Add libtool8.test.
Alexandre Duret-Lutz b95837bf 2004-03-07T09:24:21 * lib/Automake/Variable.pm (traverse_recursively, _do_recursive_traversal): Honor the skip_ac_subst option. * automake.in (handle_dist): Use skip_ac_subst.
Alexandre Duret-Lutz 2ac4685e 2004-02-29T19:10:21 * automake.in (lang_yacc_target_hook): Use Automake::Rule::define so that rules for the same headers are not output twice. * lib/Automake/Variable.pm (value_as_list_recursive): Do not call `return' inside `map'. * tests/cond30.test: Make sure `a.c' and `b.c' both appear in the Makefile.in. * tests/cond35.test, tests/cond36.test: New files. * tests/Makefile.am (TESTS): Add cond35.test and cond36.test. Report from Roman Fietze.
Alexandre Duret-Lutz d5bf5b1c 2004-02-01T12:54:02 Support for conditional _LISP. * automake.in (handle_emacs_lisp): Define $(ELCFILES) from LISP, not from $(am__ELCFILES). * lib/am/lisp.am (elc-stamp): Use $(LISP) instead of $(am__ELFILES). * tests/lisp6.test: New file. * tests/Makefile.am (TESTS): Add it.
Alexandre Duret-Lutz 1c4bc227 2004-02-01T12:18:02 * automake.in (handle_emacs_lisp): Define $(ELCFILES) as $(am__ELCFILES), and always push it on @all. Do not mention elc-stamp. * lib/am/lisp.am (.el.elc): Rewrite as ... ($(am__ELCFILES)): ... this, and depend on elc-stamp. (elc-stamp): Make sure elc-stamp is older that all .elc files, as explained in the manual entry below.
Alexandre Duret-Lutz 56662762 2004-01-20T20:22:39 * automake.in (scan_autoconf_traces): AC_LIBTOOL_TAGS can be correctly called without arguments as evidenced by the libtool demo directories.
Alexandre Duret-Lutz d7b43f2a 2004-01-10T00:24:29 * automake.in (shadow_unconditionally): New function... (handle_source_transform): ... extracted from here. (am_install_var): Use shadow_unconditionally to define %DISTVAR%. * lib/am/data.am, lib/am/java.am, lib/am/lisp.am, lib/am/python.am, lib/am/script.am: Add %DISTVAR% to DIST_COMMON. * tests/cond33.test: Make sure all conditional files are distributed. Report from Ralf Corsepius.
Alexandre Duret-Lutz f323a7a7 2004-01-08T20:22:24 * automake.in (handle_configure): Skip AC_CONFIG_LINKS items which do not look like DEST:SRC. * tests/conflnk3.test: Check for AC_CONFIG_LINKS($computed).
Alexandre Duret-Lutz 4a185139 2004-01-07T21:58:14 Fix for PR automake/289: * automake.in (Automake::Struct::libtool_tag): New attribute. Define it for the language that have a Libtool tag. (%libtool_tags): New variable. (handle_languages, define_compiler_variable) (define_linker_variable): Pass --tag=XXX to libtool if supported. (scan_autoconf_traces): Scan for _LT_AC_TAGCONFIG and AC_LIBTOOL_TAGS. * tests/libtool3.test, tests/subobj9.test: Check that --tag=XXX is output.
Alexandre Duret-Lutz cbce9cd4 2004-01-07T21:56:49 Fix for PR automake/289: * automake.in (Automake::Struct::libtool_tag): New attribute. Define it for the language that have a Libtool tag. (%libtool_tags): New variable. (handle_languages, define_compiler_variable) (define_linker_variable): Pass --tag=XXX to libtool if supported. (scan_autoconf_traces): Scan for _LT_AC_TAGCONFIG and AC_LIBTOOL_TAGS. * tests/libtool3.test, tests/subobj9.test: Check that --tag=XXX is output.
Alexandre Duret-Lutz 262bb922 2004-01-05T09:02:06 * automake.in (%transformed_files): New variable. (initialize_per_input): Reset it. (make_paragraphs): Fill %transformed_files, and define %FIRST% each time a file is transformed for the first time. (handle_configure): Do not define %FIRST_CONFIG_HIN%. (am_install_var): Do not define %FIRST%. * lib/am/remake-hdr.am: Use %?FIRST% instead of %?FIRST_CONFIG_HIN%.
Alexandre Duret-Lutz 9f4cb893 2004-01-03T15:40:07 * automake.in (scan_texinfo_file): Do not compare $outfile to '' as $outfile might not be defined at all.
Tom Tromey 8fabb3b2 2004-01-02T21:38:07 * automake.in (handle_source_transform): Don't generate dist variables when no-dist is set. (generate_makefile): Likewise. * tests/nodist3.test: Ensure that DIST_SOURCES is not created, and that dist target does not exist. Reported by Tom Fitzsimmons.
Alexandre Duret-Lutz 25c57a7e 2004-01-01T21:57:24 * automake.in (handle_languages): Do not define DEP_FILES. * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Extract included files with $(DEPDIR) in their name instead of DEP_FILES. * tests/depend.test, tests/depend4.test, tests/exsource.test: Adjust. Suggested by Tom Tromey.
Alexandre Duret-Lutz d82b453e 2004-01-01T18:54:20 Do not output .lo rules for programs and static libraries objects, and do not output .o/.obj rules for libtool libraries. This is about explicit rules only, not inference rules. * automake.in (handle_single_transform_list): Rename as ... (handle_single_transform): ... this. Take a single file to transform (it was only called this way) and accept a new %transform argument. Fill %lang_specific_files with list references instead of strings, and append %transform to each of these lists. (define_objects_from_sources, handle_source_transform): Take a %transform argument, and forward it to &handle_single_transform. (handle_languages): Adjust to the new format of %lang_specific_files, and honor its %transform part. (handle_programs, handle_libraries, handle_ltlibraries): Override %NONLIBTOOL% and %LIBTOOL% while calling handle_source_transform. (make_paragraphs): Define %NONLIBTOOL% by default. Make sure %transform settings override global settings. * lib/am/depend2.am (%OBJ%, %OBJOBJ%): Define only if %NONLIBTOOL%. * tests/libtool3.test: Augment to check Makefile.ins for unneeded rules. Suggested by Thomas Fitzsimmons.
Alexandre Duret-Lutz 16773768 2004-01-01T17:34:18 * automake.in, aclocal.in: Bump copyright years.
Alexandre Duret-Lutz 1d3a5692 2003-12-31T22:13:07 * automake.in (generate_makefile): Update misleading comment.
Alexandre Duret-Lutz 13089ee2 2003-12-30T23:49:58 * automake.in (handle_languages): Define %DEPBASE% conditionally on subdir-objects. Define SUBDIROBJ. Do not clean *_.c files here ... (lang_c_finish): ... do it here. (handle_single_transform_list): Do not output specific rules for subdir-objects files which are not renamed. This should reduce the size of Makefiles with lots of subdirectory sources. * lib/depcomp: Simplify computation of dependency output, and use DEPDIR. * lib/am/depend2.am (%EXT%.o, %EXT%.obj, %EXT%.lo): Adjust call to depcomp. Compute depbase on-the-fly in generic fastdep rules for subdir-objects. * tests/ansi9.test: Do not grep for an explicit rule that we no longer expect. Really run $MAKE to make sure the chain of rules works. * tests/yacc5.test: Do not grep for an explicit rule that we no longer expect. Adjust to use set -e.
Alexandre Duret-Lutz 6b0ea352 2003-12-27T15:39:45 * automake.in (@common_files): Move configure, configure.ac, and configure.in ... (@common_sometimes): ... here so that these files do not appear twice in DIST_COMMON.
Alexandre Duret-Lutz 8a894d1d 2003-12-27T01:38:42 * automake.in (maybe_push_required_file): Add $(srcdir) in front a required files outside the current directory or its subdirectories. * lib/am/distdir.am (distdir): Update comment. Report from Nicolas Joly.
Alexandre Duret-Lutz a5fc5b6d 2003-12-08T18:00:02 * lib/Automake/Variable.pm (hook): Use $$ as prototype, not $&. Perl 5.6.0 will not accept a reference sub reference for the latter. * automake.in (var_SUFFIXES_trigger): Adjust registration via Automake::Variabke::hook. (handle_texinfo_helper): Make sure `inner_expand => 1' appears on one line, so that Perl 5.6.0 does not complain about inner_expand being a bare identifier.
Alexandre Duret-Lutz 9f11286e 2003-12-04T18:17:20 * automake.in ($config_header_location): Remove. Use %ac_config_files_location instead. (rewrite_inputs_into_dependencies): Do not prepend $(top_builddir)/ at the top-level. (handle_configure): Use rewrite_inputs_into_dependencies to distribute and compute AC_CONFIG_HEADERS dependencies. (scan_autoconf_traces) <AC_CONFIG_HEADERS>: Fill %ac_config_files_location. * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Rename as ... (%CONFIG_HIN%): ... this. $(srcdir) is already added in scan_autoconf_traces. * tests/Makefile.am (TESTS): Add confh5.test. * tests/confh5.test: New file.
Alexandre Duret-Lutz f77b57b2 2003-12-03T23:14:48 * automake.in (handle_configure): Do not require link sources if they contain a dollar, or if they were built. Likewise, do not clean link destination if they contain a dollar. (scan_autoconf_traces) <AC_CONFIG_LINKS>: Populate %ac_config_files_location with link destinations. Do not store locations in @config_links, now that %ac_config_files_location have them. * tests/conflnk3.test: New file. * tests/Makefile.am (TESTS): Add conflnk3.test.
Alexandre Duret-Lutz 3081fe01 2003-11-30T17:00:37 * automake.in (handle_source_transform): If it's present, use libfoo_la.c instead of libfoo.c as the default source of libfoo.la, and issue an -Wobsolete diagnostic. Do not be greedy in the suffix replacement regex. * doc/automake.texi (Default _SOURCES): New node. (Program Sources, Libtool Modules): Refer to it. * tests/ltlibsrc.test: Update to check for old default source files.
Alexandre Duret-Lutz eeb89822 2003-11-30T13:35:29 * automake.in (&handle_source_transform): Calculate a default file for use in the absence of an appropriate _SOURCES declaration by first stripping any suffix from the unxformed target name, and appending `.c'. * doc/automake.texi (Program Sources, Libtool Modules): Document this. * tests/ltlibsrc.test: New file. * tests/Makefile.am (TESTS): Add ltlibsrc.test.
Alexandre Duret-Lutz 0a1c8dcb 2003-11-29T23:47:02 * lib/Automake/Variable.pm (loc_and_value_as_list_recursive, _value_as_list_recursive_worker): Merge into ... (value_as_list_recursive): ... this function. Pass options as a hash argument, and use the `location' option to trigger the behavior of loc_and_value_as_list_recursive. (traverse_recursively, transform_variable_recursively): Take options as a %options argument. (_do_recursive_traversal): Perform expansion of inner variables (as in `$(FILE).ext') on request. * automake.in (handle_options, check_libobjs_sources) (handle_source_transform, handle_LIBOBJS, handle_ltlibraries) (handle_ltlibraries, handle_man_pages, handle_dist) (handle_gettext, am_install_var): Adjust usage of value_as_list_recursive. (handle_texinfo_helper): Pass inner_expand to value_as_list_recursive. * tests/txinfo28.test: New file. * tests/Makefile.am (TESTS): Add txinfo28.test. Report from Ralf Corsepius.
Alexandre Duret-Lutz 721c236a 2003-11-25T22:19:44 * automake.in (prepend_srcdir): Parenthesize @inputs to remove a maintainer-check warning. * tests/subst2.test: Rewrite the $MAKE invocation to please maintainer-check.
Alexandre Duret-Lutz 543554ae 2003-11-25T22:07:12 * doc/automake.texi (Program variables): Mention per-target _CPPFLAGS in the documentation of INCLUDES. * automake.in (generate_makefile): Likewise in the INCLUDES diagnostic. Report from Bob Friesenhahn.
Alexandre Duret-Lutz 17820676 2003-11-22T18:05:35 Fix for PR automake/411: * automake.in (rewrite_inputs_into_dependencies): Simplify, and rename into ... (prepend_srcdir): ... this. (rewrite_inputs_into_dependencies): New function, extracted from ... (handle_configure): ... here. Adjust to use prepend_srcdir or rewrite_inputs_into_dependencies where needed. Especially, using (the new) rewrite_inputs_into_dependencies to compute Makefile dependencies will fix PR/411. * lib/am/configure.am (DIST_COMMON): Remove %MAKEFILE-IN%, it's already distributed by rewrite_inputs_into_dependencies. * tests/Makefile.am (TESTS): Add output10.test, remove distcom.test. * tests/colon3.test: Use set -e. Don't allow any AUTOMAKE invocation refer to zardoz. Make sure two.in and three.in appear as $(srcdir)/two.in and $(srcdir)/three.in dependencies. * tests/distcom.test: Delete. This is covered by tests/output9.test. * tests/output10.test: New file, for PR/411.
Alexandre Duret-Lutz 6c02da5e 2003-11-21T19:16:12 * automake.in (append_exeext): Do not append $(EXEEXT) to @substitutions@. * tests/exeext4.test: New file. * tests/Makefile.am (TESTS): Add exeext4.test.
Alexandre Duret-Lutz 9b5e57d5 2003-11-17T23:18:20 * automake.in (generate_makefile): Define SUBDIRS if it is not defined and DIST_SUBDIRS is. * tests/subpkg2.test: New file. * tests/Makefile.am (TESTS): Add subpkg2.test. Report from Gary V. Vaughan.
Alexandre Duret-Lutz 720cf06a 2003-11-17T00:33:43 * automake.in (ac_config_files_location): Declare as a hash. (handle_configure): Rewrite the computation of AC_CONFIG_FILES dependencies; make sure we don't use $(srcdir) or $(top_srcdir) for inputs which are also outputs, and do not check inputs relatively to the current directory. (scan_autoconf_config_files): Take $where as argument, and fill $ac_config_files_location. * tests/output8.test, tests/output9.test: New files. * tests/Makefile.am (TESTS): Add output8.test and output9.test. Report from Bruno Haible.
Alexandre Duret-Lutz 1b3a0187 2003-11-12T19:29:53 * automake.in (scan_autoconf_traces): Honor sinclude. * tests/sinclude.test: Check for sinclude. Report from Roberto Bagnara.
Alexandre Duret-Lutz 2a8e1b17 2003-11-10T20:55:33 * automake.in (handle_configure): Distribute and define mkinstalldirs only if it is already present in the package. (scan_autoconf_files): Do not require mkinstalldirs. (require_build_directory): Use $(mkdir_p), not $(mkinstalldirs). * lib/am/data.am, lib/am/distdir.am, lib/am/install.am, lib/am/java.am, lib/am/libs.am, lib/am/lisp.am, lib/am/mans.am, lib/am/progs.am, lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Use $(mkdir_p) instead of $(mkinstalldirs). * m4/mkdirp.m4: New file. * m4/Makefile.am (dist_m4data_DATA): Add mkdirp.m4. * m4/init.m4 (AM_INIT_AUTOMAKE): Call AM_PROG_MKDIR_P. * tests/Makefile.am (TESTS): Remove insh.test. * tests/insh.test: Delete. * tests/defs.in, tests/instsh.test: Do not install mkinstalldirs. * tests/auxdir.test: Install mkinstalldirs. * tests/distdir.test, tests/instman.test, tests/pr2.test: Use $(mkdir_p), not $(mkinstalldirs). * tests/empty.test: Run configure, do not substitute things by hand. * doc/automake.texi (Optional) <AC_CONFIG_FILES>: Take install-sh as an example, not mkinstalldirs. (Auxiliary Programs) <mkinstalldirs>: Update.
Alexandre Duret-Lutz 86c8a2d7 2003-11-09T11:55:36 * automake.in (check_gnu_standards): Install COPYING only if none of COPYING, COPYING.LIB, or COPYING.LESSER exist. Do not overwrite the license otherwise. * tests/Makefile.am (TESTS): Add license.test. * tests/license.test: New file.
Alexandre Duret-Lutz 9bfd1b3f 2003-11-08T13:01:13 * lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%): Rename as ... (%DEST_INFO_PREFIX%%DEST_SUFFIX%): ... this, and honor ?INSRC? to select $(srcdir) or `.' builds. (INFO_DEPS): Define here. * lib/am/texinfos.am (dist-info): Strip filename starting with "$(srcdir)/". * automake.in (output_texinfo_build_rules): Take a new argument $insrc, and adjust substitutions in 'texibuild'. (handle_texinfo_helper): Compute a regex of all user-cleaned files, and use this to select whether to build .info files in `.' or $(srcdir). Give an account of the $(srcdir) vs `.' debacle. Alway build the version.texi and stamp files in $(srcdir). Do not define INFO_DEPS. * tests/Makefile.am (TESTS): Add txinfo23.test, txinfo24.test, and txinfo25.test. * tests/txinfo23.test, tests/txinfo24.test, tests/txinfo25.test: New files. * tests/txinfo13.test, tests/txinfo16.test, tests/txinfo3.test, tests/vtexi.test: Adjust to new rules.
Alexandre Duret-Lutz 0768132f 2003-10-27T07:52:00 * automake.in (handle_configure): Rename am__configure_deps as am__aclocal_m4_deps and include $(ACLOCAL_M4_SOURCES) and $configure_ac. Define am__configure_deps as am__aclocal_m4_deps + $(CONFIGURE_DEPENDENCIES) + $(ACLOCAL_M4). Do not define ACLOCAL_M4_DEPS while processing configure.am. (make_paragraphs): Do not define %CONFIGURE_AC%, now unused. (scan_aclocal_m4): Do not distribute aclocal.m4, this is done from lib/am/configure.am. * lib/am/configure.am (%MAKEFILE-IN%, DIST_COMMON, $(top_srcdir)/configure, $(ACLOCAL_M4)): Simplify using $(am__configure_deps) or $(am__aclocal_m4_deps). * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Likewise.
Alexandre Duret-Lutz c8e03eca 2003-10-26T21:20:11 * automake.in (handle_configure): Distribute all AC_CONFIG_HEADERS sources, and without using require_file. Define %CONFIG_H_DEPS% and %FIRST_CONFIG_HIN% while processing remake-hdr.am. * lib/am/remake-hdr.am (%STAMP%): Use %CONFIG_H_DEPS% instead of (srcdir)/%CONFIG_HIN%. Output the $(srcdir)/%CONFIG_HIN% rule only for the first header (i.e., if %FIRST_CONFIG_HIN%). * tests/autohdr4.test: New file. * tests/Makefile.am (TESTS): Add autohdr4.test. * tests/config.test: Do not grep, run things to see if they work.
Alexandre Duret-Lutz e35d416e 2003-10-06T21:47:34 * automake.in (handle_ltlibraries): Also grep AM_LDFLAGS for `-module'. * tests/stdlib2.test: New file. * tests/Makefile.am (TESTS): Add stdlib2.test. Report from Kevin P. Fleming.
Tom Tromey 8735ca14 2003-09-30T19:05:54 * lib/Automake/Options.pm (_process_option_list): Recognize no-dist. * NEWS: Update. * doc/automake.texi (Options): Document no-dist. * automake.in (check_cygnus): Set no-dist option. (handle_dist): Recognize no-dist. * tests/nodist3.test: New file. * tests/Makefile.am (TESTS): Added nodist3.test.
Alexandre Duret-Lutz 6b872f6d 2003-09-29T20:21:19 * automake.in (handle_clean): Take $makefile as argument, and define %MAKEFILE% while processing clean.am. (generate_makefile): Pass $makefile to handle_clean. * lib/am/clean.am (distclean, maintainer-clean): Erase %MAKEFILE%, not Makefile. * tests/gnumake.test: New file. * tests/Makefile.am (TESTS): Add gnumake.test. Report from Braden N. McDaniel.
Alexandre Duret-Lutz 74fe06a8 2003-09-23T08:14:35 Support for multiple inputs in AC_CONFIG_FILES. Requested long ago by Harlan Stenn. * automake.in (handle_dist): Remove unused argument $makefile. (handle_subdirs): Expect SUBDIRS elements in $relative_dir, not $am_relative_dir. (rewrite_inputs_into_dependencies): Allow $add_srcdir to be a filename that must always be prefixed by $(srcdir) or $(top_srcdir). (handle_configure, generate_makefile): Revamp to make the Makefile.am, Makefile.in, Makefile more independent. (locate_am): New function. (scan_configure_dep, parse_arguments): Use locate_am. (MAIN): Adjust call to generate_makefile. * lib/am/configure.am: Remove %MAKEFILE-IN% from the dependencies of %MAKEFILE%. %MAKEFILE-IN% is already in %MAKEFILE-DEPS%. * tests/output6.test, tests/output7.test: New files. * tests/Makefile.am (TESTS): Add them. * automake.texi (Requirements) <AC_CONFIG_FILES>: Document how multiple inputs are scanned.
Alexandre Duret-Lutz 9e88c16c 2003-09-07T09:55:36 * aclocal.in (configure_ac): Do not call require_configure_ac before parsing the options. * automake.in (configure_ac): Likewise. * lib/Automake/Variable.pm (configure_ac): Do not require configure.ac, find it. * lib/Automake/Configure_ac.pm (require_configure_ac): find_configure_ac never return an undefined value, so test the file's existence instead. * tests/Makefile.am (TESTS): Add help.test. * tests/help.test: New file.
Alexandre Duret-Lutz 09cce90f 2003-09-06T21:10:40 * lib/Automake/XFile.pm: Update to use ChannelDefs. (close): Call Automake::FileUtils::handle_exec_errors on errors. * automake.in (scan_autoconf_files): Exit with $?=63 on version mismatch. (scan_autoconf_traces): Likewise. Close the autoconf pipe to capture abnormal exits. * aclocal.in ($exit_status): Remove, and use Channels.pm's $exit_code instead. (trace_used_macros): Close the autom4te pipe to capture abnormal exits. * lib/missing: When a tool has run and exited with $?=63, emulate it. Adjust the diagnostic and pretend the tool is tool old in this case. Use an emacs-updated "scriptversion" variable. * configure.in: Output tests/aclocal-${APIVERSION} and tests/automake-${APIVERSION}. * tests/aclocal.in, tests/automake.in, tests/missing.test, tests/missing2.test: New files. * tests/defs.in (AUTOMAKE, ACLOCAL, PATH): Define to use tests/aclocal-$APIVERSION and tests/automake-$APIVERSION. * tests/dup3.test: Remove. alocal9.test, acloca10.test, and others are already testing for this. * tests/depacl2.test, tests/dup2.test, tests/order.test: Fix configure.in so that aclocal works. * tests/defun.test: Quote the AC_DEFUN body. * tests/Makefile.am (TESTS): Add missing.test and missing2.test, and remove dup3.test. (check_SCRIPTS): Add aclocal and automake.
Paul Eggert 636c8076 2003-09-06T05:36:57 Spelling and minor grammar fixes.
Alexandre Duret-Lutz c2f546d3 2003-08-24T22:34:59 For Debian Bug #206299: * automake.in ($configure_deps_greatest_timestamp, $output_deps_greatest_timestamp): New variables. (initialize_per_input): Reset $output_deps_greatest_timestamp. (scan_autoconf_traces, scan_autoconf_files, read_am_file): Update $configure_deps_greatest_timestamp and $output_deps_greatest_timestamp (generate_makefile): Rewrite the logic to decide whether to rewrite the output. Move the leading dup_channel_setup and trailing drop_channel_setup to MAIN, so that drop_channel_setup is executed for all exit paths. * tests/aclocal7.test: Update to check for $AUTOMAKE --no-force * tests/distcom6.test: New file. Report from Scott James Remnant. * tests/Makefile.am (TESTS): Add distcom6.test.
Alexandre Duret-Lutz 4de3f2b8 2003-08-24T02:16:31 * automake.in (file_contents_internal): Do not add newlines before empty actions.
Akim Demaille 1e118082 2003-08-21T08:49:25 * lib/Automake/Configure_ac.pm (&find_configure_ac) (&require_configure_ac): Accept an optional directory argument. ($configure_ac): Remove. * aclocal.in, automake.in ($configure_ac): New. * lib/Automake/Variable.pm: Don't use $configure_ac, just configure.ac.
Alexandre Duret-Lutz 9a792314 2003-08-12T17:52:09 * lib/Automake/Item.pm, lib/Automake/ItemDef.pm: New files. * lib/Automake/Rule.pm, lib/Automake/RuleDef.pm: New files. * lib/Automake/Makefile.am (dist_perllib_DATA): Add them. * lib/Automake/VarDef.pm: Make this a subclass of Automake::ItemDef. (new): Adjust to call Automake::ItemDef::new. (comment, location, owner): Delete. Now inherited from ItemDef. * lib/Automake/Variable.pm: Make this a subclass of Automake::Item. (_new): Adjust to call Automake::Item::new. (name, def, rdef, _set, conditions, not_always_defined_in_cond): Delete. How inherited from Item, where `_set' is called `set'. * automake.in (SUFFIX_RULE_PATTERN): Delete. Now in Automake::Rule. (suffix_rules_default): Delete. Now Automake::Rule::_suffix_rules_default (suffixes): Delete. Now Automake::Rule::suffixes. (TARGET_AUTOMAKE, TARGET_USER): Delete. Now Automake::RuleDef::RULE_AUTOMAKE and Automake::RuleDef::RULE_USER. (%targets, %target_source, %target_name, %target_owner): Delete, replaced by the Rule and RuleDef classes. (dependencies, depend, actions): Delete. Now in Automake::Rule. (suffix_rules, register_suffix_rule): Likewise. (KNOWN_EXTENSIONS_PATTERN, accept_extensions): Likewise. (known_extensions_list): Delete. Now Automake::Rule::_known_extensions_list. (target_conditions): Delete. Now inherited by Automake::Rule from Automake::Item::conditions. (rule_define): Delete. Now Automake::Rule::define. Adjust all callers. (target_defined): Delete. Now Automake::Rule::rule. Adjust all callers. (initialize_per_input): Adjust to call Automake::Rule::reset. (err_target, err_cond_target, msg_cond_target, msg_target, reject_target): Delete. Now defined in Automake::Rule as err_rule, err_cond_rule, msg_cond_rule, msg_rule and reject_target. Adjust all callers. (handle_languages): Call suffix_rules_count. * tests/location.test: Adjust expected diagnostics. We now display $(EXEEXT) accurately.