X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=Rakefile;h=a53492017509f4ecb9a6f6f49ef072fd71b70a5c;hb=2df5c59a319f9468b9f04f5872dc5fa98203b431;hp=e47e6b541b8450a25b9c43c42ba59769412337cc;hpb=c3202d026f3800676461ee407f2a5e46dc20e2f2;p=ruby-evas.git diff --git a/Rakefile b/Rakefile index e47e6b5..a534920 100644 --- a/Rakefile +++ b/Rakefile @@ -6,6 +6,8 @@ require "rake/packagetask" require "rake/contrib/compositepublisher" require "rake/contrib/sshpublisher" +PKG_NAME = "ruby-evas" + CLOBBER.include("src/*.{s,}o") ext_obj = Dir["src/*.c"].map { |f| f.sub(/\.[^.]+$/, ".o") } @@ -41,3 +43,24 @@ task :install => [ext_lib.so] do |t| headers = ["src/rb_evas.h", "src/rb_evas_object.h"] FileUtils::Verbose.install(headers, ddir, :mode => 0644) end + +Rake::RDocTask.new do |t| + t.rdoc_dir = "doc" + t.title = "Ruby-Evas -- Evas bindings for Ruby" + t.options = ["--line-numbers", "--inline-source", "--main", "README"] + t.rdoc_files = FileList[ + "AUTHORS", "COPYING", "README", + "src/rb_evas.c", "src/rb_evas_main.c", "src/rb_evas_object.c", + "src/rb_evas_object_events.c", "src/rb_gradient.c", + "src/rb_image.c", "src/rb_line.c", "src/rb_polygon.c", + "src/rb_rectangle.c", "src/rb_smart.c", "src/rb_text.c" + ] +end + +task :publish => [:rdoc] do + p = Rake::CompositePublisher.new + p.add(Rake::SshFreshDirPublisher.new("code-monkey.de", + "public_docs/" + + PKG_NAME, "doc")) + p.upload +end