Rake (pronounced "rake") is a tool for automating the assembly of program code. It is similar to SCons , Make, and Apache Ant , but has several differences. This tool is written in the Ruby programming language, and Rakefiles (the Makefiles analogues in the make utility) use the Ruby syntax. The author of Rake is Jim Weirich.
| Rake | |
|---|---|
| Type of | Software Development Utilities |
| Author | |
| Developer | Jim Weirich |
| operating system | cross-platform software |
| Latest version | 12.0.0 ( December 6 , 2016 ) |
| License | MIT License |
| Site | ruby.imtqy.com/rake/ |
Rake uses Ruby's anonymous function blocks to define various tasks using Ruby syntax. It has a library of basic tasks, such as functions for file manipulation tasks and a library for deleting compiled files (the βclean upβ task). Like Make, Rake can also synthesize tasks based on templates (for example, automatically assembling a task to compile a file based on file name templates).
Content
Usage Example
An example of a simple Rake script for building a HelloWorld C program:
file 'hello.o' => [ 'hello.c' ] do
sh 'cc -c -o hello.o hello.c'
end
file 'hello' => [ 'hello.o' ] do
sh 'cc -o hello hello.o'
end
See also
- m4
- Makefile
Notes
Links
- The Rake Project on Github
- Build with Rake (English) , presentation of Jim Weirich at 2003 RubyConf
- Using Rake. Article by Martin Fowler
- Rake Guide (Translation)