David M . Lloyd <[EMAIL PROTECTED]> writes:
>I want to install a C header file into the same place that perl's header
>files are kept when my XS module is installed.
>
>Has anyone ever done that?
Yes.
>I can't find anything in MakeMaker's manpage
>that I can use for that... in fact, I can't find anything that will even
>let me install arbitrary files!
If you have in your Makefile.PL
package MY;
sub post_initialize
{
my ($self) = @_;
my $ddir = $self->catdir('$(INST_ARCHLIBDIR)','SubDir');
my $src = $self->catfile('somedir','SomeFile.h');
next unless -f $src;
$self->{PM}->{$src} = $self->catfile($ddir,'SomeFile.h');
}
Then your .h file will get installed along with the .pm files.
>
>Thanks...
>
>- D
>
><[EMAIL PROTECTED]>
--
Nick Ing-Simmons
http://www.ni-s.u-net.com/