Welcome to the Monastery | |
PerlMonks |
How to properly use ExtUtils::MakeMaker PL_FILES attribute?by glasswalk3r (Friar) |
on May 27, 2017 at 00:13 UTC ( [id://1191332]=perlquestion: print w/replies, xml ) | Need Help?? |
glasswalk3r has asked for the wisdom of the Perl Monks concerning the following question: Hello Monks The ExtUtils::MakeMaker Pod says the following regarding PL_FILES attribute: MakeMaker can run programs to generate files for you at build time. By default any file named *.PL (except Makefile.PL and Build.PL) in the top level directory will be assumed to be a Perl program and run passing its own basename in as an argument. This basename is actually a build target, and there is an intention, but not a requirement, that the *.PL file make the file passed to to as an argument. PL files are normally run after pm_to_blib and include INST_LIB and INST_ARCH in their @INC, so the just built modules can be accessed... unless the PL file is making a module (or anything else in PM) in which case it is run before pm_to_blib and does not include INST_LIB and INST_ARCH in its @INC. Since I'm looking for to generate a module after the Makefile.PL is executed (so all dependencies would be properly addressed), I would need this module before the pm_to_blib phase, but it seems we have some implicit control over there. Is there any way to guarantee when the PL files will be executed within the Makefile (before or after pm_to_blib)? Thanks!
Alceu Rodrigues de Freitas Junior --------------------------------- "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill
Back to
Seekers of Perl Wisdom
|
|