Daiku - Make for Perl
#! perl use Daiku; use autodie ':all'; desc 'do all tasks'; task 'all' => 'foo'; file 'foo' => 'foo.o' => sub { system "gcc -c foo foo.o"; }; rule '.o' => '.c' => sub { system "gcc -c foo.o foo.c"; }; build shift @ARGV || 'all';
Daiku is yet another build system for Perl5.
desc $desc:Str
Description of following task.
task $name:Str, \@deps:ArrayRef[Str]
task $name:Str, \@deps:ArrayRef[Str], \&callback
task $name:Str, $deps:Str
task $name:Str, $deps:Str, \&callback
Register .PHONY task to registrar.
file $name, $deps:Str, \&code
file $name, \@deps:ArrayRef[Str], \&code
Register a file creation rule.
rule $dst:Str, $src:Str, \&callback:CodeRef
Register a suffix rule. It's same as following code on Make.
.c.o: cc -c $<
build $task : Str
Build one object named $task.
namesace $namespace:Str, \&codeblock
Declare namespace of tasks. Namespaces are separated by colon.
This module doesn't detect recursion, but Perl5 can detect it.
Tokuhiro Matsuno <tokuhirom AAJKLFJEF GMAIL COM>
Rake, make(1)
Copyright (C) Tokuhiro Matsuno
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Daiku, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Daiku
CPAN shell
perl -MCPAN -e shell install Daiku
For more information on module installation, please visit the detailed CPAN module installation guide.