T. Onoma wrote:
> I can't seem to get rake to generate rdocs (for starters). I'm using version 
> 0.4.4 and I started with a template rakefile based on Active Record --it 
> looks pretty standard. One thing I noticed is "--accessor 
> cattr_accessor=object". What's that all about? The error I get is:
> 
>   rake aborted!
>   Don't know how to rake Rakefile

Rake is reporting that a something has a dependency on a file named 
"Rakefile" and rake doesn't know how to build it.

Use "rake -P" to find all the dependencies (prerequisites) for all the 
tasks.  We see that "rdoc" needs a file named "doc/index.html", which in 
turn depends upon a bunch of files.  One of the those files is 
"Rakefile".  But if you copied David's setup, he tends to name his file 
"rakefile" (different case).

On OSX (and windows) case doesn't matter.  But on Linux it does. 
Evidently the rdoc task is adding an implicit dependency on the Rakefile 
so that changes in the rake file will regenerate the doc files (e.g. if 
you change an RDoc option in the rake file).  This is actually a bug in 
the rdoc task, it should use the actually name of the rakefile rather 
than assuming it is always "Rakefile".  I'll fix this in the next release.

In the meantime, change the name of your rake file to "Rakefile" and it 
should be OK.

-- 
-- Jim Weirich    jim / weirichhouse.org     http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)