Clever Geek Handbook
πŸ“œ ⬆️ ⬇️

Rake

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 ofSoftware Development Utilities
Author
DeveloperJim Weirich
operating systemcross-platform software
Latest version12.0.0 ( December 6 , 2016 )
LicenseMIT License
Siteruby.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)
Source - https://ru.wikipedia.org/w/index.php?title=Rake&oldid=95694115


More articles:

  • Saudi Arabia at the 2016 Summer Olympics
  • Danilovsky, Gustav
  • Zhestkov, Alexander Yurievich
  • Mahinda bo
  • Bakery Moscow Region
  • Garapedyan, Carla
  • Korenchuk, Ananiy Frantsevich
  • Ibragimov, Zainutdin Ibrahimhalilovich
  • (6847) Kunz Hallstein
  • Baku (highway)

All articles

Clever Geek | 2019