line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Enbld::Target::AttributeExtension::Command; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
773
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
56
|
|
4
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
58
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
7
|
use parent qw/Enbld::Target::Attribute/; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
11
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $make; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub make_command { |
11
|
|
|
|
|
|
|
|
12
|
138
|
100
|
|
138
|
0
|
785
|
return $make if $make; |
13
|
|
|
|
|
|
|
|
14
|
1
|
50
|
|
|
|
4568
|
if ( `which gmake` ) { |
|
|
50
|
|
|
|
|
|
15
|
0
|
|
|
|
|
0
|
return ( $make = 'gmake' ); |
16
|
|
|
|
|
|
|
} elsif ( `make -v 2>&1` =~ /GNU Make/ ) { |
17
|
1
|
|
|
|
|
34
|
return ( $make = 'make' ); |
18
|
|
|
|
|
|
|
} else { |
19
|
0
|
|
|
|
|
|
require Enbld::Error; |
20
|
0
|
|
|
|
|
|
die( Enbld::Error->new( 'GNU Make is NOT installed' )); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |