]> git.ipfire.org Git - thirdparty/automake.git/commit
[ng] rule, lang: get rid of 'suffix_rules_count', simplify logic
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 23 May 2012 22:10:53 +0000 (00:10 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 24 May 2012 07:37:37 +0000 (09:37 +0200)
commit1908e701fa761a03786a19269ce501819073c364
treeda531be5ee9498eaa9745297affed8ecb51e4118
parent51caa48a7474f64882cbcebd476980b5559aa908
[ng] rule, lang: get rid of 'suffix_rules_count', simplify logic

Apparently, some of our pre-existing logic used to determine when we need
to bring C-related stuff into the generated Makefile was too strict; we can
simplify it a bit, still keeping the testsuite clean.

* automake.in (handle_languages): Bring in C stuff only if we've seen a
non-pure language (like yacc or vala) or if '$need_link' is true, without
bothering to check whether we've seen more than one suffix rules.  This
change removes the only caller in the automake code base of ...
* lib/Automake/Rule.pm (suffix_rules_count): ... this subroutine, which
has thus been removed.
(@EXPORT): Adjust.

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