[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems delimiting the modules to be manified



Joachim Breitner dijo [Tue, Mar 01, 2005 at 11:22:51PM +0100]:
> > (...)
> > ...But I have not been able to come up with a way to use this. I tried
> > setting the file list to 1, to the destination name, to whatever, and
> > I always get an error such as:
> > 
> > Makefile:883: *** multiple target patterns.  Stop.
> 
> Without checking, this sounds like 
> MAN3PODS = {
> 	'foo/bar.pm' => 'Foo::Bar',
> 	'bar/geld.pm' => 'Bar::Geld',
> }
> 
> for all pms you want mans for. Just a guess though.

Ok... You should be very glad you are in Germany, because I could run
and kiss you ;-) 

I needed just a bit extra tweaking after this, it ended up like:

@manify = (...);
%makehash = ( (...)
    MAN3PODS     =>  { map {my $file = "lib/$_";
		       my $man = $_;
		       $man =~ s!\.(pm|pod)$!!;
		       $man =~ s!/!::!g;
		       $man = "blib/man3/${man}.3pm";
		       $file => $man} @manify}
);

Thanks a lot!

-- 
Gunnar Wolf - gwolf@gwolf.org - (+52-55)1451-2244 / 5554-9450
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF



Reply to: