For faster navigation, this Iframe is preloading the Wikiwand page for Rake.

Rake

Материал из Википедии — свободной энциклопедии

Rake
Тип Утилиты для разработки программного обеспечения
Автор Джим Вейрих[вд]
Разработчик Джим Вайрих
Написана на Ruby
Операционная система кроссплатформенное программное обеспечение
Последняя версия 13.0.6 (9 июля, 2021)
Репозиторий github.com/ruby/rake
Лицензия MIT License
Сайт ruby.github.io/rake/

Rake (МФА [reɪk]; с англ. — «грабли», «разгребать») — инструмент для автоматизации сборки программного кода, написанный на Ruby, и применяющийся в основном для проектов на Ruby (но используется также и для проектов на других языках). Подобен SCons, Make и Apache Ant, но имеет несколько отличий, в частности, так называемые Rakefile (аналоги Makefile в утилите make) используют синтаксис Ruby. Основной автор — Джим Вайрих (Jim Weirich).

Использует блоки анонимных функций Ruby для определения различных задач, используя синтаксис Ruby. В нём есть библиотека основных заданий, таких как функции для задач манипулирования файлами и библиотека для удаления скомпилированных файлов (задача «очистки»). Как и Make, Rake может также синтезировать задачи, основываясь на шаблонах (например, автоматическая сборка задачи компилирования файла на основе шаблонов имён файлов).

Пример простого сценария Rake для сборки программы HelloWorld на языке Си:

  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
{{bottomLinkPreText}} {{bottomLinkText}}
Rake
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?