NAME

Build::Simple - A minimalistic dependency system

VERSION

version 0.002

DESCRIPTION

Build::Simply is a simple but effective dependency engine. It tries to support

METHODS

add_file($filename, %options)

Add a file to the build graph. It can take the following options:

  • action

    A subref to the action that needs to be performed.

  • dependencies

    The nodes the action depends on. Defaults to an empty list.

  • skip_mkdir

    Block mkdir(dirname($filename)) from being executed before the action. Defaults to false.

add_phony($filename, %options)

Add a phony dependency to the graph. It takes the same options as add_file does, except that skip_mkdir defaults to true.

run($goal, %options)

Make all of $goal's dependencies, and then $goal itself.

has_node($filename)

Returns true if a node exists in the graph, returns false otherwise.

AUTHOR

Leon Timmermans <leont@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.