[Pdx-pm] ExtUtils::MakeMaker

Chris Dawson cdawson at webiphany.com
Tue Feb 15 14:47:54 PST 2005


I am having some trouble figuring out how to use MakeMaker.  I have a
Makefile.PL which looks like this:

use ExtUtils::MakeMaker;

WriteMakefile( NAME => "Smil",
               PMLIBDIRS => [ ( ".", "SMIL", "RN" ) ] );

package MY;

sub libscan
{ # Determine things that should *not* be installed
    my($self, $path) = @_;
    return '' if $path !~ m/\.pm$/i;
    $path;
}

The directory appears like this:
-rw-rw-rw-    1 cdawson  users         288 2004-03-31 17:26 Makefile.PL
-rw-rw-rw-    1 cdawson  users        1903 2004-03-31 17:26 README
drwxr-xr-x    4 cdawson  users         120 2005-02-15 14:15 lib

I have a base module Smil.pm and two directories with supporting modules
in SMIL and RN, inside the lib directory.

When I run perl Makefile.PL && make && make test && make install, the
test fails when it tries to find a module in the SMIL directory.  Is
there something I am doing incorrectly here?  I haven't modified this
Makefile in a long time; it seemed like it used to work and install all
modules.  I recently read that .pm files should be placed into a lib
directory within the tgz'ed file, so I did this, but to no avail.

Chris



More information about the Pdx-pm-list mailing list