# -*- mode: ruby; coding: utf-8 -*- %w[. ../xot ../rucy ../rays].map {|s| "#{s}/lib"}.each do |path| $: << File.expand_path(File.join File.dirname(__FILE__), *path.split('/')) end require 'rubygems' require 'xot/rake/helpers' require 'xot/module' require 'rucy/module' require 'rays/module' require 'reflex/module' include Xot::Rake MODULE = Reflex GEMNAME = 'reflexion' INCDIRS = [Reflex, Rays, Rucy].map {|m| m.include_dirs}.flatten task :default => :build task :build => :ext task :rebuild => [:clean, :build] task :lib => 'lib:build' task :ext => 'ext:build' task :doc => 'ext:doc' task :gem => 'gem:build' task :install => 'gem:install' task :uninstall => 'gem:uninstall' task :clean => ['lib:clean', 'ext:clean', 'gem:clean'] task :test => :ext do Dir['test/**/test_*.rb'].each do |rb| sh %( ruby #{rb} ) end end [Xot, Rucy, Rays, Reflex].each {|m| m.load_tasks}