X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=Rakefile;h=a53492017509f4ecb9a6f6f49ef072fd71b70a5c;hb=2df5c59a319f9468b9f04f5872dc5fa98203b431;hp=e4021000f64042a625e18ebd40d9a7213676c8a5;hpb=5c413ba979a7ed90d9b86c50376a58790c4cdf30;p=ruby-evas.git diff --git a/Rakefile b/Rakefile index e402100..a534920 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,3 @@ -# $Id: Rakefile 375 2006-02-25 10:09:27Z tilman $ - require "library" require "rake/clean" require "rake/testtask" @@ -8,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") } @@ -43,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