[augeas-devel] [PATCH] distclean-local: Do not clobber build/aux
Jim Meyering
jim at meyering.net
Tue Jul 1 19:19:28 UTC 2008
David Lutterkort <dlutter at redhat.com> wrote:
...
> - -rm -rf $(top_builddir)/build
> + -find $(top_builddir)/build/* -maxdepth 0 -not -name aux | xargs rm -rf
Hi David,
Recommended practice for "clean"-style rules is to remove only those
files that other rules may create. Then if a user leaves a
differently-named file in a build directory, there's no chance
that a "make *clean" rule will destroy his misplaced file.
Also, find's -maxdepth and -not predicates are not portable.
More information about the augeas-devel
mailing list