Share on Facebook Share on Twitter Email
Answers.com

Rake

 
Wikipedia: Rake (software)
Rake
Developer(s) Jim Weirich
Stable release 0.8.7 / 2009-05-15; 6 months ago
Operating system cross-platform
Type Software development tools
License MIT License
Website http://rake.rubyforge.org

Rake is a software build tool. It is similar to SCons and make, but has a number of differences. The tool is written in the Ruby programming language and the Rakefiles (equivalent of Makefiles in make) use Ruby syntax. It was originated by Jim Weirich.

Rake uses Ruby's anonymous function blocks to define various tasks, allowing the use of the Ruby syntax. There's a library of common tasks available, for example, functions to do common file-manipulation tasks and a library to remove compiled files (the "clean" task). Like Make, Rake can also synthesize tasks based on patterns (for example, automatically building a file compilation task based on filename patterns). Rake is now part of the standard library from Ruby version 1.9.

Example

Below is an example of a simple Rake script to build a C HelloWorld 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

External links


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
 
 
Learn More
Raikes (family name)
Rakes (family name)
raking

How do you use a rake? Read answer...
Were was the rake invented? Read answer...
What is an architectural rake? Read answer...

Help us answer these
What is the rake character?
What is rack and rake?
What is a rake board?

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Rake (software)" Read more