[Module-build-general] PL_files
Status: Beta
Brought to you by:
kwilliams
|
From: Dominic M. <do...@ha...> - 2003-04-27 21:05:28
|
I've got a .PL file that I'm trying to get run as part of my build.
Module::Build->new(
module_name => 'MyModule',
PL_files => {
'lib/mkconst.PL' => [],
},
);
However, the mkconst.PL script is not getting run at all. The docs
appear to indicate that it would get run, and that there would be
nothing to clean up, based on what I've specified. Is that right?
Looking at process_PL_files(), it would seem that things only get run if
there's something in the list.
However, taking a step or two back....
What I'm trying to do is rebuild the file lib/Constants.pm from
lib/Constants.pm.in only if it's out of date. Using
ExtUtils::MakeMaker, this was (relatively) easy. What's the best way to
do this using Module::Build? I started looking at .PL files to sort it
out, but I don't think that's the right answer. Would it be better to
subclass Module::Build and override ACTION_build to do the right thing?
I haven't even started looking at getting the SWIG bits of this module
working yet...
Oh, one last question. Is there an archive of the module-build-general
list anywhere? Sourceforge doesn't seem to know about it.
Thanks,
-Dom
|