testsuite: Makefile.PL: do not rename Makefile while running make clean

This commit is contained in:
Maik Fischer 2011-11-12 01:51:18 +01:00 committed by Michael Stapelberg
parent 8a9b093bc3
commit 4f2b1c3a66
1 changed files with 13 additions and 5 deletions

View File

@ -15,11 +15,19 @@ WriteMakefile(
'EV' => 0,
'Inline' => 0,
},
# don't install any files from this directory
PM => {},
PM => {}, # do not install any files from this directory
clean => {
FILES => 'testsuite-* latest'
FILES => 'testsuite-* latest i3-cfg-for-*',
}
);
# and don't run the tests while installing
sub MY::test { }
package MY;
sub test { } # do not run the tests while installing
# do not rename the Makefile
sub clean {
my $section = shift->SUPER::clean(@_);
$section =~ s/^\t\Q$_\E\n$//m for
'- $(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD) $(DEV_NULL)';
$section;
}