summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Shadura <andrew.shadura@collabora.co.uk>2016-03-06 09:56:26 +0100
committerAndrew Shadura <andrew.shadura@collabora.co.uk>2016-03-06 09:56:26 +0100
commitb5c8b4cb374abb27a46003dc901cdb534d210105 (patch)
treee4e192389acc9b4147e991b6ebd022cf13e13c0d
parente3f79905c4f492631bacbb8c6993ad99b57a178a (diff)
Add cleandir support.
-rw-r--r--debian/bmake.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/bmake.pm b/debian/bmake.pm
index 0573b77..bcf0843 100644
--- a/debian/bmake.pm
+++ b/debian/bmake.pm
@@ -78,6 +78,13 @@ sub configure {
}
}
+sub clean {
+ my $this=shift;
+ if (!$this->rmdir_builddir()) {
+ $this->make_first_existing_target(['cleandir', 'distclean', 'realclean', 'clean'], @_);
+ }
+}
+
sub new {
my $class=shift;
my $this=$class->SUPER::new(@_);