On Wed, May 30, 2001 at 12:58:58AM -0700, Brian Ingerson wrote:
> When Inline::MakeMaker is used by an extension module author, the 'make
> dist' rule will be overridden to tell Inline to set things up as if it
> were just a regular XS module.
Bad idea. You'll still need to distribute Inline::MakeMaker for the user's
Makefile.PL, so no gain.
> For Foo.pm, the generated Foo.xs and
> friends will be packaged, so it will look like a normal XS based
> distribution. Almost...
>
> There is still a call to 'use Inline' that must be dealt with.
Not if you rewrite the Foo.pm file once you've generated the Foo.xs.
I believe a *much* easier way to do this would be to abstract out the part of
Inline that parses the C and creates the XS, so that I can do something like
this:
% h2xs -A -n Foo::Bar
% cd Foo/Bar/
% cat > Bar.in
bar(...) {
...
}
% inline2xs Bar.in >| Bar.xs
% make dist
--
Going to church does not make a person religious, nor does going to school
make a person educated, any more than going to a garage makes a person a car.