Rake (software)

Rake (software)

Infobox Software
name = Rake


caption =
developer = Jim Weirich
latest release version = 0.8.2
latest release date = release date|2008|09|09
operating system = cross-platform
genre = 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

ee also

* make
* Apache Ant

External links

* [http://rake.rubyforge.org/ Rake documentation]
* [http://rubyforge.org/projects/rake RubyForge project page for Rake]
* [http://martinfowler.com/articles/rake.html Using the Rake build language] by Martin Fowler
* [http://www.railsenvy.com/2007/6/11/ruby-on-rails-rake-tutorial Ruby on Rails Rake tutorial] at railsenvy.com


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Rake — may refer to:* Rake (angle), various angles in bicycle and motorcycle geometry * Rake (cellular automaton), a cellular automaton pattern that moves while regularly emitting spaceships * Rake (character), a man habituated to immoral conduct. *… …   Wikipedia

  • Rake (poker) — Rake is the scaled commission fee taken by a cardroom operating a poker game. It is generally 5 to 10 percent[citation needed] of the pot in each poker hand, up to a predetermined maximum amount. There are also other non percentage ways for a… …   Wikipedia

  • Comparison of Continuous Integration Software — Contents 1 About Continuous Integration Software 2 Comparison 3 See also 4 References About Continuous Integra …   Wikipedia

  • List of build automation software — Build automation involves scripting or automating the process of compiling computer source code into binary code. Below is a list of notable tools associated with the build automation process. Contents 1 Make based tools 2 Non Make based tools 3… …   Wikipedia

  • Thompson Courier and Rake Register — The Thompson Courier and Rake Register [http://www.iowanewspapersonline.com/default.asp?lstNewsPaper=280 Submit=GO] is a Thursday, weekly, tabloid, newspaper serving the towns of Thompson, Iowa and Rake, Iowa in Winnebago County, Iowa.… …   Wikipedia

  • Outline of software engineering — See also: Index of software engineering articles The following outline is provided as an overview of and topical guide to software engineering: Software engineering – application of a systematic, disciplined, quantifiable approach to the… …   Wikipedia

  • Make (software) — make Original author(s) Stuart Feldman Initial release 1977 Type build automation tool In software development, Make is a utility that automatically builds executable programs and libraries from source code by rea …   Wikipedia

  • Online poker — PokerTracker HUD overlay during a Pokerstars online poker session Online poker is the game of poker played over the Internet. It has been partly responsible for a dramatic increase in the number of poker players worldwide. Christiansen Capital… …   Wikipedia

  • Comics — For the entertainers known as comics , see Comedian. For the magazine format usually containing longer self contained stories, see Comic book. Yellow Kid, created by Richard F. Outcault. Comics (from the Greek κωμικός, kōmikos of or pertaining to …   Wikipedia

  • Internet-Poker — Onlinepoker ist Poker, das online über das Internet gespielt wird. In sogenannten Onlinepokerräumen können angemeldete Spieler entweder um fiktives Spielgeld oder aber auch um Echtgeld spielen. Inhaltsverzeichnis 1 Rechtslage 2 Vorteile gegenüber …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”