Hash :
f15852df
Author :
Date :
2023-01-03T21:46:38
rm: convert more cases to am__rm_f Fixes automake bug https://bugs.gnu.org/10828. Clean up a few more cases where we were doing `test ... || rm ...` to avoid calling `rm -f` without arguments by leveraging am__rm_f. These were harder to find in the source due to their constructed nature. The clean programs rules in particular were much more complicated than they needed to be. This logic boiled down to two things: delete the list of programs, and then delete the list without the exeext suffix, but only if the list of programs is non-empty. The check-TESTS rule was converted to am__rm_f, but a simplification was missed where the $list variable is inlined. * bin/automake.in: Delete test -z logic and always call am__rm_f. * contrib/check-html.am: Use $(am__rm_f) helper. * doc/automake.texi: Update examples to match current behavior. * lib/am/check.am: Inline $list variable. * lib/am/progs.am: Rewrite rule to use $(am__rm_f).
This is the 'contrib' directory of the GNU Automake distribution.
Here you'll find additions to the Automake base distribution, in the form of
makefile fragments, m4 macros, scripts, documentation, et cetera: additions
that might be handy to many users, but (for one reason or another) are not
deemed appropriate for inclusion into the Automake core.
There are several reasons that a feature might be kept in contrib:
1. The long-term usefulness of the feature is debatable and uncertain;
real-world testing is necessary to prove or disprove its usefulness,
before the feature can be committed into the Automake core (as doing so
too early would later force us to continue support for
backward-compatibility, even if the feature proved flawed or fails to
attract widespread use).
2. The APIs or overall design of the feature are still unstable, and need
testing to iron out warts and usability bugs, or uncover potential flaws.
3. The feature was an historical one, mostly obsolete but still used in the
wild. We want to deprecate it and remove it from the Automake core, but
cannot remove it altogether, for the sake of the existing usage, so it
gets moved to contrib.