Gabor Szabo wrote:
Is there a way to completely replace make install by my own code?

   package MyBuilder;
   use base 'Module::Build';

   sub ACTION_install {
       my $self = shift;
       ...
   }

But if you want to do it the hard way.

{
    package MY;
    sub install {
        my($self, %attribs) = @_;

        my $make = $self->SUPER::install(%attribs);

        # Blot out the install target.
        $make =~ s{^install .*?\n(\w)}{$1}ms
            or die "Failed to blot out install target";

        $make .= <<'END';

install : Makefile
        $(NOECHO) $(ECHO) install
END

        return $make;
    }
}

You might want to just blow away the whole of the install process, since you're probably not going to use it, by not calling $self->SUPER::install.

But if you're not using the MakeMaker install process why are you using 
MakeMaker?


--
Insulting our readers is part of our business model.
        http://somethingpositive.net/sp07122005.shtml

Reply via email to