I got this bit of email from one of the CPAN testers today. Since it works
under Windows and since I don't run Linux I've no clue as to why the
makefile generated by:
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
my @list_of_db_files = ('db\ECO','db\NIC','db\Opening');
WriteMakefile(
'NAME' => 'Chess::PGN::EPD',
'VERSION_FROM' => 'EPD.pm', # finds $VERSION
'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'EPD.pm', # retrieve abstract from module
AUTHOR => 'Hugh S. Myers <[EMAIL PROTECTED]>') : ()),
);
sub MY::post_constants {
join("\n",
'INSTALL_DB_FILES=$(INSTALLSITELIB)\Chess\PGN\db',
"DB_FILES=@list_of_db_files");
}
sub MY::postamble {
my $self = shift;
my @text;
push(@text,
'install :: install.dbfiles',
'',
'install.dbfiles:: $(DB_FILES)',
"\t\$(MKPATH) \$(INSTALL_DB_FILES)",
"\t\$(CP) \$(DB_FILES) \$(INSTALL_DB_FILES)");
join("\n",@text);
}
creates something that doesn't work under Linux. Anyone out there with
suggestions etc.?
--hsm
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 12:23 PM
To: Hugh S. Myers
Cc: [EMAIL PROTECTED]
Subject: Chess-PGN-EPD
Hi,
As you may remember I already gave a PASS to "Chess-PGN-EPD-0.09".
Probably this PASS is justified because IMHO the job of cpan-testers
ends with the reporting of "make test"'s failure or success.
In the case of "Chess-PGN-EPD-0.09" I actually got a "make install"
problem:
[root@tairou Chess-PGN-EPD-0.09]# make install
Writing
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/auto/Chess/PGN/EPD/.packlist
Appending installation info to
/usr/local/lib/perl5/5.6.1/i686-linux/perllocal.pod
make: *** No rule to make target `db\ECO', needed by `install.dbfiles'.
Stop.
^^^^^^^
Hope that helps,
Andreas