| 1 | package Enbld::Target::AttributeExtension::Command; | ||||||||||||||
| 2 | |||||||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 5 | |||||||||||||||
| 6 | 2 | ▶ | use parent qw/Enbld::Target::Attribute/; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 7 | |||||||||||||||
| 8 | 2 | our $make; | |||||||||||||
| 9 | |||||||||||||||
| 10 | sub make_command { | ||||||||||||||
| 11 | |||||||||||||||
| 12 | 138 | ▶ | return $make if $make; | ||||||||||||
|
Subroutine
make_command: called CC=4 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||||||
| 13 | |||||||||||||||
| 14 | 1 | ▶ | if ( `which gmake` ) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 15 | 1 | return ( $make = 'gmake' ); | |||||||||||||
| 16 | } elsif ( `make -v 2>&1` =~ /GNU Make/ ) { | ||||||||||||||
| 17 | 0 | 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 | 2 | 1; | |||||||||||||