vkon has asked for the wisdom of the Perl Monks concerning the following question:

Dear all,

In the module development process, I am changing the Makefile.PL file.
I have some ZIP file and I want for it to be installed to 'blib' during development, and to installation path during normall install.
How should I instruct for Makefile.PL for doing so?

I can't find in documentation, yet it seems that generated Makefile installs some temporary compiler files just fine (e.g. absolutely useless *.pdb files from MSVC) but I can't manage for my file to go into the process.

I'm lost.

Please advice!

  • Comment on seeking Makefile.PL wisdom -- how to install non-PM file?

Replies are listed 'Best First'.
Re: seeking Makefile.PL wisdom -- how to install non-PM file?
by rafl (Friar) on Jul 15, 2006 at 15:23 UTC

    I usually do something like that:

    postamble(<<"END_MAKEFILE"); config :: \t\$(NOECHO) \$(MOD_INSTALL) \\ \t\t\"$dir\" \$(INST_AUTODIR) END_MAKEFILE

    where $dir is a directory with those non-pm files I'd like to install.

    Cheers, Flo

      Thanks!

      But is it safe to do so?
      Are these lines are inter-make-compatible? (at least nmake and make and dmake?)

      I also found a person with the same problem -- http://ungwe.org:30000/blog/2002/09/15/22:05/

      For the record, currently I added '.pm' fake extension so file installed as needed
      but I am uncomfortable with this solution.

      Thanks once again!
      Vadim.

        It works at least with GNU make and nmake. I haven't tried other make implementations so far and didn't even know that dmake existed.

        Cheers, Flo

      A reply falls below the community's threshold of quality. You may see it by logging in.