Simplest Makefile.PL

Simplest Makefile.PL

am 27.07.2007 22:08:20 von inventor

Hi, I've got a cute little ASCII plotting module that I'd like to
release to CPAN, but I don't know how to create a Makefile.PL file.
I've looked at some examples but they are too complex and confusing.
Could someone point me to some documentation or post a barebones
Makefile.PL? Thanks in advance.

Re: Simplest Makefile.PL

am 27.07.2007 22:41:51 von Tim Southerwood

Inventor coughed up some electrons that declared:

> Hi, I've got a cute little ASCII plotting module that I'd like to
> release to CPAN, but I don't know how to create a Makefile.PL file.
> I've looked at some examples but they are too complex and confusing.
> Could someone point me to some documentation or post a barebones
> Makefile.PL? Thanks in advance.

Hi

h2xs will help you here. Perhaps:

h2xs -AX -n Your::Module::Something

gives a pretty basic tree complete with Makefile.PL which you can drop your
module into. It's CPAN compliant, indeed it's the recommended way.

Cheers

Tim

Re: Simplest Makefile.PL

am 27.07.2007 23:01:30 von inventor

On Jul 27, 4:41 pm, Tim Southerwood wrote:
> Inventor coughed up some electrons that declared:
>
> > Hi, I've got a cute little ASCII plotting module that I'd like to
> > release to CPAN, but I don't know how to create a Makefile.PL file.
> > I've looked at some examples but they are too complex and confusing.
> > Could someone point me to some documentation or post a barebones
> > Makefile.PL? Thanks in advance.
>
> Hi
>
> h2xs will help you here. Perhaps:
>
> h2xs -AX -n Your::Module::Something
>
> gives a pretty basic tree complete with Makefile.PL which you can drop your
> module into. It's CPAN compliant, indeed it's the recommended way.
>
> Cheers
>
> Tim

Thanks a bunch, that did the trick!

Re: Simplest Makefile.PL

am 28.07.2007 00:30:25 von Tim Southerwood

Inventor coughed up some electrons that declared:

> On Jul 27, 4:41 pm, Tim Southerwood wrote:
>> Inventor coughed up some electrons that declared:
>>
>> > Hi, I've got a cute little ASCII plotting module that I'd like to
>> > release to CPAN, but I don't know how to create a Makefile.PL file.
>> > I've looked at some examples but they are too complex and confusing.
>> > Could someone point me to some documentation or post a barebones
>> > Makefile.PL? Thanks in advance.
>>
>> Hi
>>
>> h2xs will help you here. Perhaps:
>>
>> h2xs -AX -n Your::Module::Something
>>
>> gives a pretty basic tree complete with Makefile.PL which you can drop
>> your module into. It's CPAN compliant, indeed it's the recommended way.
>>
>> Cheers
>>
>> Tim
>
> Thanks a bunch, that did the trick!

Hi

Glad it worked for you :)

Just for info, h2xs was really intended to generate skeletons for people
writing XS perl<->binary modules, but it got generalised... Hence the funky
and non-obvious name.

Cheers

Tim