Handle multiple suffix rules with the same input extension.
authorAlexandre Duret-Lutz <adl@gnu.org>
Mon, 1 Jul 2002 16:10:35 +0000 (16:10 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Mon, 1 Jul 2002 16:10:35 +0000 (16:10 +0000)
commit4fae2af0048573bfbf1484f2befecae54751ddc5
treedb7232e74c3989efc900cc5a679a888042edec2b
parentf40d0b280c6239b2a613e6122f6484aeb9cdcfbd
Handle multiple suffix rules with the same input extension.
For PR automake/37.

* automake.in (suffix_rules_default): New variable.
(suffix_rules): Redefine as a hash of hashes of pairs.
(initialize_per_input): Setup suffix_rules_default from
suffix_rules on first call, an override suffix_rules
with suffix_rules_default on following calls.
(struct) <output_extensions>: New attribute.
(register_language): Set the default for output_extensions.
Call register_suffix_rule for each suffix.
(derive_suffix, handle_languages): Adjust to the new definition
of $suffix.
(register_suffix_rule): New function.
(rule_define): Call register_suffix_rule.
* tests/suffix8.test, tests/suffix9.test, tests/suffix10.test:
New files.
* tests/Makefile.am (TESTS): Add them.
ChangeLog
automake.in
tests/Makefile.am
tests/Makefile.in
tests/suffix10.test [new file with mode: 0755]
tests/suffix8.test [new file with mode: 0755]
tests/suffix9.test [new file with mode: 0755]