On Wed, 21 Aug 2002, Michael G Schwern wrote: >How do I instruct MakeMaker to install support files together with >the module? > >I am creating a module starting with > h2xs -c -X -n My::Module > >which generates My/Module/Module.pm and associated files. I also >need for the file My/Module/template.tmpl to be installed at "make >install" time.
I don't think there is any easy way to add extra files. I had a similar problem with documentation which I wanted to put in /usr/doc/. The only answer was ugly - to alter the Makefile text and add new commands. You can look at the result here: <http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/xmltv/xmltv/Makefile.PL?rev=HEAD&only_with_tag=HEAD&content-type=text/plain>. The overridden method MY::install is probably the important one. I would like to make a general mechanism for 'random extra files to install', but never got around to it. -- Ed Avis <[EMAIL PROTECTED]>
