line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Inline::Module::LeanDist::MakefilePL; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
472
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
112
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
require Inline::Module::LeanDist; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub import { |
9
|
1
|
|
|
1
|
|
5
|
my $class = shift; |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
|
|
18
|
*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; |