-# $Id: Rakefile 341 2005-05-07 11:02:51Z tilman $
+# $Id: Rakefile 378 2006-02-25 10:13:07Z tilman $
require "library"
require "rake/clean"
destdir = "#{ENV["DESTDIR"]}"
sitearchdir = ENV["RUBYARCHDIR"] || Config::CONFIG['sitearchdir']
- FileUtils::Verbose.install(ext_lib.so, destdir + sitearchdir,
- :mode => 0755)
+ ddir = destdir + sitearchdir
+ FileUtils::Verbose.mkdir_p(ddir) unless File.directory?(ddir)
+ FileUtils::Verbose.install(ext_lib.so, ddir, :mode => 0755)
end