Added first ecore_con bits.
[ruby-ecore.git] / Rakefile
index fcae887f5f6b9ff67c1ffadfc3645f8ec7977f4d..d020227398f6683b0edb52ac9b2a7925facf5049 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -1,4 +1,4 @@
-# $Id: Rakefile 321 2005-04-27 14:01:11Z tilman $
+# $Id: Rakefile 362 2006-02-13 22:46:35Z tilman $
 
 require "library"
 require "rake/clean"
@@ -10,7 +10,7 @@ require "rake/contrib/sshpublisher"
 
 CLOBBER.include("src/*/*.{s,}o")
 
-ext_libs = ["ecore", "ecore_evas", "ecore_job", "ecore_x"].map do |lib|
+ext_libs = %w{ecore ecore_evas ecore_job ecore_x ecore_con}.map do |lib|
        Library.new(lib, ENV["ECORE_PREFIX"] || "/usr/local", "src/#{lib}")
 end
 
@@ -31,7 +31,7 @@ end
 
 task :install => ext_libs.map { |l| l.so } do |t|
        destdir = "#{ENV["DESTDIR"]}"
-       sitearchdir = Config::CONFIG['sitearchdir']
+       sitearchdir = ENV["RUBYARCHDIR"] || Config::CONFIG['sitearchdir']
 
        FileUtils::Verbose.install(t.prerequisites.to_a, destdir + sitearchdir,
                                   :mode => 0755)