in reply to Re^2: Makefile.PL: Howto make OS dependent modules
in thread Makefile.PL: Howto make OS dependent modules

I looked into it, but I´m afraid it does not quite serve my purpose.

Look up :) AssertOS is in the CheckOS distribution ... Devel::CheckOS - check what OS we're running on ... this mean it doesn't die

So then

package System::Scaller; use Module::Load qw/ load /; use Devel::CheckOS qw/ os_is /; my @targets = ( [qw/ AIX System::Scanner::AIX /], [qw/ RHEL System::Scanner::Linux::RHEL /], [qw/ SUSE System::Scanner::Linux::SUSE /], ); for my $targ ( @targets ){ my( $name, $module ) = @_; if( os_is( $name ) ){ load $module; @System::Scaller::ISA = $module; last; } } 1;

You install everything, you only load the module thats appropriate for the platform

Hacking Makefiles and only packing certain files is PITA, avoid it