]> git.ipfire.org Git - thirdparty/automake.git/commit
[ng] suffix: don't reject old-fashioned suffix rules anymore
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 29 May 2012 11:45:46 +0000 (13:45 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 29 May 2012 12:55:47 +0000 (14:55 +0200)
commitd90fca070656c1da148a4619e05f764345d206dd
tree8e34f1bf6d07da4da513cdca6327d44d34934dc8
parent645bb2101df2040ebedb65341cc786704c56f194
[ng] suffix: don't reject old-fashioned suffix rules anymore

Now that, after today's commit 'v1.12-331-g645bb21', Automake-NG does
not follow the chain of user-defined pattern rules anymore, there's no
need to treat such rules preferentially, nor to reject old-fashioned
suffix rules.  This will help interoperability with tools like Gnulib,
which generated Makefile.am fragments that still uses old-fashioned
suffix rules (since they are targeted to mainline Automake).

* automake.in (handle_footer): Do not reject the '.SUFFIXES:' rule
nor the 'SUFFIXES' variable.  Add a "FIXME" comment about why we
still support the 'SUFFIXES' variable.
* lib/Automake/Rule.pm: Do not error out if an old-fashioned suffix
rule is seen.
* lib/am/footer.am (.SUFFIXES): Depend on '$(SUFFIXES)', if that's
non-empty.
* t/suffix-rules-reject.sh: Remove.
* t/suffix-rules-old-fashioned.sh: New.
* NG-NEWS: Adjust.
* doc/automake-ng.texi (Suffixes): Do not state that Automake-NG
rejects attempts to define old-fashioned suffix rules.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
NG-NEWS
automake.in
doc/automake-ng.texi
lib/Automake/Rule.pm
lib/am/footer.am
t/suffix-rules-old-fashioned.sh [new file with mode: 0755]
t/suffix-rules-reject.sh [deleted file]