File Coverage

blib/lib/Inline/Module/LeanDist/MakefilePL.pm
Criterion Covered Total %
statement 5 8 62.5
branch n/a
condition 0 2 0.0
subroutine 2 3 66.6
pod 0 1 0.0
total 7 14 50.0


line stmt bran cond sub pod time code
1             package Inline::Module::LeanDist::MakefilePL;
2              
3 1     1   552 use strict;
  1         2  
  1         125  
4              
5             require Inline::Module::LeanDist;
6              
7              
8             sub import {
9 1     1   7 my $class = shift;
10              
11 1         20 *MY::postamble = \&postamble;
12             }
13              
14             sub postamble {
15 0     0 0   my ($makemaker, %args) = @_;
16              
17 0   0       my $inline_file = $args{inline}->{file} || die "unable to find 'file' param in postamble.inline";
18              
19 0           my $section = <<"END_OF_SECTION";
20             clean ::
21             \t- \$(RM_RF) $Inline::Module::LeanDist::inline_build_path
22              
23             distdir :
24             \t\$(NOECHO) \$(ABSPERLRUN) $inline_file # ensure the .inline directory is populated
25             \t\$(NOECHO) \$(ABSPERLRUN) -MInline::Module::LeanDist::DistDir -e 'Inline::Module::LeanDist::DistDir::run()' -- \$(DISTVNAME) $inline_file
26             END_OF_SECTION
27             }
28              
29              
30             1;