i3/testcases/Makefile.PL
Maik Fischer e8d2fbbac8 testcases: Makefile.PL: NAME =~ s/ /-/
since NAME is used to generate targets,
a space will lead to invalid syntax eg:
Makefile:547: warning: overriding commands for target `i3'
Makefile:536: warning: ignoring old commands for target `i3'
2011-12-04 14:14:20 +01:00

31 lines
745 B
Perl
Executable File

#!/usr/bin/env perl
# vim:ts=4:sw=4:expandtab
use strict; use warnings;
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'i3-testsuite',
MIN_PERL_VERSION => '5.010000', # 5.10.0
PREREQ_PM => {
'AnyEvent' => 0,
'AnyEvent::I3' => '0.09',
'X11::XCB' => '0.03',
'Inline' => 0,
},
PM => {}, # do not install any files from this directory
clean => {
FILES => 'testsuite-* latest i3-cfg-for-*',
}
);
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;
}