1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
require 'Core/Dev.pm'; PDL::Core::Dev->import();
use ExtUtils::MakeMaker;
$defstartup = 'default.perldlrc';
if ($^O =~ /win32/i) {
$defstartup = 'default.pdl';
system("copy default.perldlrc $defstartup");
}
# # See lib/ExtUtils/MakeMaker.pm for details of how to influence
# # the contents of the Makefile that is written.
my @pm_names = qw ( PDL.pm Lite.pm LiteF.pm AutoLoader.pm Options.pm );
my %pm = map { $h = '$(INST_LIBDIR)/';
$h .= 'PDL/' if $_ !~ /PDL.pm$/;
( $_, $h . $_ );
} ( @pm_names, $defstartup );
my %man3pods = map { $h = '$(INST_MAN3DIR)/';
$h .= 'PDL::' if $_ !~ /PDL.pm$/;
( $_, $h . substr($_,0,length($_)-3) . '.$(MAN3EXT)' );
} @pm_names;
WriteMakefile(
'NAME' => 'PDL',
'VERSION_FROM' => 'Core/Version.pm',
'PM' => \%pm,
'MAN3PODS' => \%man3pods,
'DIR' => ['Pod','Gen','Core','Ops','Primitive','Slices',
'Test','Math','Complex'],
);
# For the lazy people
sub MY::postamble {
PDL::Core::Dev::postamble().
q~
test_tjl :
PERL_DL_NONLAZY=1 $(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -e 'use Test::Harness qw(&runtests $$verbose); $$verbose=$(TEST_VERBOSE); runtests @ARGV;' t/*.t
~
}
|