|
From: peterdd <mi...@li...> - 2007-12-01 04:10:55
|
> Makefile.perl is generated from Makefile.PL > using this command (in Makefile.am rule): > > Makefile.perl: Makefile.PL > srcdir=$(srcdir) builddir=$(abs_builddir) $(PERL) $< > MAKEFILE=Makefile.perl > > There's no explicit setting for install dir in Makefile.PL, I belive it all > comes from $(PERL) itself ... You can pass a bunch of parameters to perl Makefile.PL See man ExtUtils::MakeMaker I changed the line in Makefile.am to Makefile.perl: Makefile.PL srcdir=$(srcdir) builddir=$(abs_builddir) $(PERL) PREFIX=$(prefix) $< FIRST_MAKEFILE=Makefile.perl and it seems to work. So there is maybe no need to tinker with environment variables in Makefile.PL itself? There is too no parameter MAKEFILE in ExtUtils::MakeMaker but it seems to accept it nevertheless. I found following in man ExtUtils::MakeMaker: FIRST_MAKEFILE The name of the Makefile to be produced. This is used for the second Makefile that will be produced for the MAP_TARGET. Defaults to Makefile or Descrip.MMS on VMS. (Note: we couldn't use MAKEFILE because dmake uses this for something else). Please test. peterdd |