Re: [Module-build-general] Warning on shebang/extending M::B
Status: Beta
Brought to you by:
kwilliams
|
From: Dave R. <au...@ur...> - 2003-09-10 20:44:32
|
On Wed, 10 Sep 2003, Ken Y. Clark wrote:
> 2. The main reason I want to move away from MakeMaker is because I have
> a number of files (HTML templates, configuration files, stylesheet)
> that I want to install into directories that the user defines as
> arguments to Build.PL. In MM, I'd create extra targets for the
> "make install," but with Module::Build the docs say I ought to be
> able to just add some code to "ACTION_install" to get this to
> happen, but I'm not having any luck. Even something simple like
> this doesn't work:
>
> my $builder = Module::Build->subclass(
> class => 'My::Builder',
> code => q[
> sub ACTION_install {
> my $self = shift;
> print "Yo!\n";
> }
> ]
> )->new(
> module_name => 'Bio::GMOD::CMap',
> dist_author => 'Ken Y. Clark <kc...@cs...>',
> dist_name => 'cmap',
> dist_version_from => 'lib/Bio/GMOD/CMap.pm',
> license => 'gpl',
> );
> $builder->create_build_script;
>
> When I run "./Build fakeinstall" (because I don't want to actually
> install on this machine), I don't see "Yo" but I do see lots of
> "Installing..." statements. I've scoured the docs, looked at the
> Cookbook, read the perl.com article, and searched the list archives,
> but I don't really see how I can add some actions like this. I'd
> really appreciate a point to the right docs if they exist, or some
> help in making them if they don't.
fakeinstall is a separate action, implemented by a separate method. This
should probably be stated explicitly in the docs, because your expectation
seems reasonable.
-dave
/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/
|