X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=ruby%2FRakefile.in;h=7c5a63aa8a0ba499fbaaee79133117c0bc4d3979;hb=04ea1375c55aa67df4e7fc61dbb534111767f3b6;hp=e77b0ebd1c9a998fb13be92cf25fb765bf33446c;hpb=cef4ba0b8fec2b95153a07ac9537306e50ba167f;p=libguestfs.git diff --git a/ruby/Rakefile.in b/ruby/Rakefile.in index e77b0eb..7c5a63a 100644 --- a/ruby/Rakefile.in +++ b/ruby/Rakefile.in @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. require 'rake/clean' require 'rake/rdoctask' @@ -60,10 +60,23 @@ Rake::TestTask.new(:test) do |t| end task :test => :build +RDOC_FILES = FileList[ + "README.rdoc", + "lib/**/*.rb", + "ext/**/*.[ch]" +] + Rake::RDocTask.new do |rd| rd.main = "README.rdoc" rd.rdoc_dir = "doc/site/api" - rd.rdoc_files.include("README.rdoc", "lib/**/*.rb", "ext/**/*.[ch]") + rd.rdoc_files.include(RDOC_FILES) +end + +Rake::RDocTask.new(:ri) do |rd| + rd.main = "README.rdoc" + rd.rdoc_dir = "doc/ri" + rd.options << "--ri-system" + rd.rdoc_files.include(RDOC_FILES) end # Package tasks