ChainMake::Functions - Function-oriented interface to ChainMake


ChainMake documentation Contained in the ChainMake distribution.

Index


Code Index:

NAME

Top

ChainMake::Functions - Function-oriented interface to ChainMake

SYNOPSIS

Top

See the synopsis in ChainMake.

DESCRIPTION

Top

This module provides a function-oriented interface to ChainMake. All methods are available as functions. When running a parallel perl, ChainMake::Parallel is used.

CAVEATS/BUGS

Top

None known.

AUTHOR/COPYRIGHT

Top


ChainMake documentation Contained in the ChainMake distribution.

package ChainMake::Functions;

use strict;
use Config;
use ChainMake;
use Exporter 'import';

our $VERSION = $ChainMake::VERSION;

our @EXPORT_OK = qw(
    configure
    targets
    target
    chainmake
    execute_perl
    execute_system
    unlink_timestamps
    delete_timestamp
);
our %EXPORT_TAGS = (all => [@EXPORT_OK]);
 
my $cm=new ChainMake();

if ($Config{useithreads}) {
    eval "require ChainMake::Parallel";
    $cm=new ChainMake::Parallel();
}

sub configure { $cm->configure(@_) };
sub target { $cm->targets(@_) };
sub targets { $cm->targets(@_) };
sub chainmake { $cm->chainmake(@_) };
sub execute_perl { $cm->execute_perl(@_) };
sub execute_system { $cm->execute_system(@_) };
sub unlink_timestamps { $cm->unlink_timestamps(@_) };
sub delete_timestamp { $cm->delete_timestamp(@_) };

1;

__END__