-# $Id: Rakefile 340 2005-05-07 11:02:41Z tilman $
+# $Id: Rakefile 375 2006-02-25 10:09:27Z 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)
ddir = destdir + sitearchdir + "/evas"
- FileUtils::Verbose.mkdir(ddir) unless File.directory?(ddir)
+ FileUtils::Verbose.mkdir_p(ddir) unless File.directory?(ddir)
headers = ["src/rb_evas.h", "src/rb_evas_object.h"]
FileUtils::Verbose.install(headers, ddir, :mode => 0644)