Bio-SamTools
view release on metacpan or search on metacpan
my $class = Module::Build->subclass(code=><<EOF);
sub process_c_bin_files {
my \$self = shift;
chomp(my \$make = `which make`);
chomp(my \$nmake = `which nmake`);
\$make ||= \$nmake;
system "cd c_bin; \$make INCLUDES=-I$sam_include LIBPATH=-L$sam_lib";
mkdir "blib/bin" unless -e "blib/bin";
my \@exec = grep {-x \$_} <c_bin/*>;
\$self->copy_if_modified(from =>\$_,
to_dir => "./blib/bin/",
flatten=>1,
) foreach \@exec;
}
sub ACTION_clean {
my \$self = shift;
\$self->SUPER::ACTION_clean();
system "cd c_bin; make -s clean";
}
( run in 0.992 second using v1.01-cache-2.11-cpan-39bf76dae61 )