<s>
Rake	B-Application
is	O
a	O
software	O
task	O
management	O
and	O
build	B-Application
automation	I-Application
tool	O
created	O
by	O
Jim	O
Weirich	O
.	O
</s>
<s>
It	O
is	O
similar	O
in	O
to	O
SCons	B-Application
and	O
Make	B-Application
.	O
</s>
<s>
It	O
's	O
written	O
in	O
the	O
Ruby	B-Language
programming	I-Language
language	I-Language
and	O
the	O
Rakefiles	B-Application
(	O
equivalent	O
of	O
Makefiles	O
in	O
Make	B-Application
)	O
use	O
Ruby	B-Language
syntax	O
.	O
</s>
<s>
Rake	B-Application
uses	O
Ruby	B-Language
's	O
anonymous	B-General_Concept
function	I-General_Concept
blocks	O
to	O
define	O
various	O
tasks	O
,	O
allowing	O
the	O
use	O
of	O
Ruby	B-Language
syntax	O
.	O
</s>
<s>
Like	O
Make	B-Application
,	O
Rake	B-Application
can	O
also	O
synthesize	O
tasks	O
based	O
on	O
patterns	O
:	O
for	O
example	O
,	O
automatically	O
building	O
a	O
file	O
compilation	O
task	O
based	O
on	O
filename	O
patterns	O
.	O
</s>
<s>
Rake	B-Application
is	O
now	O
part	O
of	O
the	O
standard	O
library	O
of	O
Ruby	B-Language
from	O
version	O
1.9	O
onward	O
.	O
</s>
<s>
Below	O
is	O
an	O
example	O
of	O
a	O
simple	O
Rake	B-Application
script	O
to	O
build	O
a	O
C	B-Language
Hello	O
World	O
program	O
.	O
</s>
<s>
When	O
a	O
file	O
is	O
named	O
as	O
a	O
prerequisite	O
but	O
it	O
does	O
not	O
have	O
a	O
file	O
task	O
defined	O
for	O
it	O
,	O
Rake	B-Application
will	O
attempt	O
to	O
synthesize	O
a	O
task	O
by	O
looking	O
at	O
a	O
list	O
of	O
rules	O
supplied	O
in	O
the	O
Rakefile	B-Application
.	O
</s>
<s>
If	O
the	O
Rakefile	B-Application
has	O
a	O
rule	O
that	O
looks	O
like	O
this	O
:	O
</s>
<s>
It	O
has	O
as	O
a	O
prerequisite	O
that	O
a	O
source	O
file	O
with	O
an	O
extension	O
of	O
"	O
.c	B-Language
"	O
must	O
exist	O
.	O
</s>
<s>
If	O
Rake	B-Application
is	O
able	O
to	O
find	O
a	O
file	O
named	O
"	O
mycode.c	O
"	O
,	O
it	O
will	O
automatically	O
create	O
a	O
task	O
that	O
builds	O
"	O
mycode.o	O
"	O
from	O
"	O
mycode.c	O
"	O
.	O
</s>
<s>
If	O
the	O
file	O
"	O
mycode.c	O
"	O
does	O
not	O
exist	O
,	O
Rake	B-Application
will	O
attempt	O
to	O
recursively	O
synthesize	O
a	O
rule	O
for	O
it	O
.	O
</s>
<s>
NOTE	O
:	O
Because	O
of	O
a	O
quirk	O
in	O
Ruby	B-Language
syntax	O
,	O
parentheses	O
are	O
required	O
around	O
a	O
rule	O
when	O
the	O
first	O
argument	O
is	O
a	O
regular	O
expression	O
.	O
</s>
<s>
Below	O
is	O
an	O
example	O
of	O
a	O
simple	O
Rake	B-Application
recipe	O
:	O
</s>
