Automake::Rule: expose suffix rules as a function, not a scalar
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 27 May 2013 08:44:06 +0000 (10:44 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 28 May 2013 09:08:53 +0000 (11:08 +0200)
commit55f82a803e59ad68a56714ddf008b4f82baea3a3
tree813b5cd670cd4dfa6f7ec29bb8a05d59bbd87c54
parent4ba95192f272a39b2d659f13baa32c755b15c3ea
Automake::Rule: expose suffix rules as a function, not a scalar

This is just a preparatory refactoring in view of future patches.
No semantic change is intended.

* lib/Automake/Rule.pm ($suffix_rules): Turn from a package-level
variable to a lexical variable.
(suffix_rule): New function, expose the details of $suffix_rules
that are actually required by code outside thus modules --- and
only those details, no more.
(@EXPORT): Adjust.
* automake.in (derive_suffix): Likewise.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
automake.in
lib/Automake/Rule.pm