Subject: | make realclean is broken |
Hello,
I'm about to package Devel::Cover for the Debian GNU/Linux distribution
and noticed that the realclean target is broken while I was doing that.
It tries to remove directories using $(RM_F), which fails. The following
patch uses $(RM_F) to delete files and $(RM_RF) to delete the
directories, which fixes the problem for me.
--- libdevel-cover-perl-0.55.orig/Makefile.PL
+++ libdevel-cover-perl-0.55/Makefile.PL
@@ -320,7 +320,10 @@
},
dist => { COMPRESS => "gzip --best --force" },
clean => { FILES => join " ", "t/*", map "$_.version",
@versions },
- realclean => { FILES => "lib/Devel/Cover/Inc.pm cover_db t" },
+ realclean => {
+ FILES => "lib/Devel/Cover/Inc.pm",
+ POSTOP => "\$(RM_RF) cover_db t"
+ },
depend => { distdir => "@files" },
);
Regards,
Flo