Package: debhelper
Version: 13.24.2
Severity: wishlist
Tags: patch
Hello.
According to
https://www.gnu.org/software/make/manual/html_node/Standard-Targets.html
the maintainer-clean target removes more files than distclean,
so it should be preferred when available.
--- a/lib/Debian/Debhelper/Buildsystem/makefile.pm
+++ b/lib/Debian/Debhelper/Buildsystem/makefile.pm
@@ -199,7 +199,7 @@
sub clean {
my $this=shift;
if (!$this->rmdir_builddir()) {
- $this->make_first_existing_target(['distclean', 'realclean',
'clean'], @_);
+ $this->make_first_existing_target(['maintainer-clean',
'distclean', 'realclean', 'clean'], @_);
}
}