diff options
author | Andrew Shadura <andrew.shadura@collabora.co.uk> | 2016-03-06 09:56:26 +0100 |
---|---|---|
committer | Andrew Shadura <andrew.shadura@collabora.co.uk> | 2016-03-06 09:56:26 +0100 |
commit | b5c8b4cb374abb27a46003dc901cdb534d210105 (patch) | |
tree | e4e192389acc9b4147e991b6ebd022cf13e13c0d | |
parent | e3f79905c4f492631bacbb8c6993ad99b57a178a (diff) |
Add cleandir support.
-rw-r--r-- | debian/bmake.pm | 7 |
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(@_); |