>>>>> On Wed, 21 Aug 2002 23:02:29 -0700, Michael G Schwern <[EMAIL PROTECTED]> said:

  > Ya know, I can't think of an easy way to do this.  Anyone else?

There's certainly more than one way to do it. I usually just create a
lib/ directory and put all the files that need to be installed into
it. WRT to the example below, I just tried:

 k@k242:~/tmp/trymm% cd My/Module/
 k@k242:~/tmp/trymm/My/Module% mkdir lib
 k@k242:~/tmp/trymm/My/Module% mkdir lib/My
 k@k242:~/tmp/trymm/My/Module% mv Module.pm lib/My/
 k@k242:~/tmp/trymm/My/Module% mkdir lib/My/Module         
 k@k242:~/tmp/trymm/My/Module% echo foo > lib/My/Module/template.tmpl
 k@k242:~/tmp/trymm/My/Module% perl -i~ -ple 's:Module:lib/My/Module:' MANIFEST 
 k@k242:~/tmp/trymm/My/Module% echo lib/My/Module/template.tmpl >> MANIFEST
 k@k242:~/tmp/trymm/My/Module% perl -i~ -ple 's:Module.pm:lib/My/Module.pm:' 
Makefile.PL 
 k@k242:~/tmp/trymm/My/Module% perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for My::Module
 k@k242:~/tmp/trymm/My/Module% make
cp lib/My/Module/template.tmpl blib/lib/My/Module/template.tmpl
cp lib/My/Module.pm blib/lib/My/Module.pm
AutoSplitting blib/lib/My/Module.pm (blib/lib/auto/My/Module)
Manifying blib/man3/My::Module.3

So you see, the support file gets copied to blib/... and will be
installed on make install.


  > From: [EMAIL PROTECTED]
  > Subject: MakeMaker question
  > To: [EMAIL PROTECTED]
  > Date: Thu, 22 Aug 2002 08:22:00 +0300 (IDT)
  > Reply-To: [EMAIL PROTECTED]

  > Hi,

  > 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 succeeded in including the file into the tar.gz by calling "make manifest" before
  > "make dist", but it does not get installed.

  > Thanks in advance,
  > Jaim

  > -- 
  >  Dr Jaime Prilusky                | [EMAIL PROTECTED]
  >  Weizmann Institute of Science    | fax: 972-8-9344113
  >  76100 Rehovot - Israel           | tel: 972-8-9344959

  >  info URL http://bioinformatics.weizmann.ac.il/jaime_prilusky.html
  >  OCA is at http://bioinformatics.weizmann.ac.il:8500



  > ----------


  > -- 

  > Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
  > Perl Quality Assurance      <[EMAIL PROTECTED]>         Kwalitee Is Job One
  > And it's made from all-natural baby skin, so you know it's good for the
  > environment.
  >         http://www.goats.com/archive/000606.html


-- 
andreas

Reply via email to