=head1 NAME ignore_action -- A build check method that ignores changes in the command. =head1 USAGE build_check ignore_action =head1 DESCRIPTION The C method is exactly like the C method except that it will not cause a rebuild if the command string changes. This method is intended to be used (along with the variable $(changed_inputs)) for commands that update an output file rather than remake it from scratch. For example, libxyz.a : *.o : build_check ignore_action ar ru $(output) $(changed_inputs) is one way that you can update an archive. (There are a number of reasons why updating an archive can lead to incorrect builds, however. See the makepp cookbook for details.) =cut use strict; package BuildCheck::ignore_action; use BuildCheck::exact_match; our @ISA = 'BuildCheck::exact_match'; our $ignore_action = bless \@ISA; # Make the singleton object. sub build_check { BuildCheck::exact_match::build_check( @_, 1, 0 ); # Pass the ignore_action flag to # exact_match's build check method. } sub build_check_from_build_info { BuildCheck::exact_match::build_check_from_build_info( @_, 1, 0 ); } sub build_cache_key { BuildCheck::exact_match::build_cache_key( @_, 1, 0 ); } 1;