Added an rdoctask.
[redact.git] / Rakefile
index 8a74e3316dcdbf18843a74cad071c2b22699f323..13968f721d3846af936790da774502235ceb50d4 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -1,7 +1,8 @@
-# $Id: Rakefile 8 2005-03-28 18:11:12Z tilman $
+# $Id: Rakefile 10 2005-03-28 20:55:18Z tilman $
 
 require "rake/clean"
 require "rake/testtask"
+require "rake/rdoctask"
 
 CLOBBER.include(FileList["test/*.edj"])
 
@@ -30,3 +31,12 @@ Rake::TestTask.new do |t|
        t.test_files = FileList["test/test*.rb"]
        t.verbose = true
 end
+
+Rake::RDocTask.new do |t|
+       t.rdoc_dir = "doc"
+       t.title = "Redact - An Edje Compiler written in Ruby"
+       t.options = ["--line-numbers", "--inline-source", "--main", "README"]
+       t.rdoc_files.include("README", "COPYING", "AUTHORS", "ChangeLog",
+                            "TODO", "lib/redact/redact.rb",
+                            "lib/redact/part.rb", "lib/redact/program.rb")
+end