Make::Rule - a rule with prerequisites and recipe
my $rule = Make::Rule->new( $kind, \@prereqs, \@recipe, \@recipe_raw ); my @name_commands = $rule->Make($target); my @deps = @{ $rule->prereqs }; my @cmds = @{ $rule->recipe }; my @expanded_cmds = @{ $rule->exp_recipe($target) }; # vars expanded my @raw_cmds = @{ $rule->recipe_raw }; # with any \ still on line-ends my @ood = $rule->out_of_date($target); my $vars = $rule->auto_vars($target); # tied hash-ref
Represents a rule. An instance exists for each ':' or '::' rule in the makefile. The recipe and prerequisites are kept here.
To install Make, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Make
CPAN shell
perl -MCPAN -e shell install Make
For more information on module installation, please visit the detailed CPAN module installation guide.