mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/extmk.rb (extmake): should not force to remake Makefile when
installation and so on. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
25a327ae76
commit
7d7f1ef157
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Aug 17 11:32:04 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/extmk.rb (extmake): should not force to remake Makefile when
|
||||
installation and so on.
|
||||
|
||||
Sat Aug 16 23:58:18 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* marshal.c (w_symbol, w_object): get rid of warnings.
|
||||
|
|
|
@ -25,8 +25,6 @@ srcdir = Config::CONFIG["srcdir"]
|
|||
$:.replace [srcdir, srcdir+"/lib", "."]
|
||||
|
||||
require 'mkmf'
|
||||
require 'ftools'
|
||||
require 'shellwords'
|
||||
require 'getopts'
|
||||
|
||||
$topdir = File.expand_path(".")
|
||||
|
@ -55,7 +53,7 @@ def extmake(target)
|
|||
|
||||
begin
|
||||
dir = Dir.pwd
|
||||
File.mkpath target unless File.directory?(target)
|
||||
FileUtils.mkpath target unless File.directory?(target)
|
||||
Dir.chdir target
|
||||
$target = target
|
||||
$mdir = target
|
||||
|
@ -91,6 +89,8 @@ def extmake(target)
|
|||
else
|
||||
true
|
||||
end
|
||||
else
|
||||
File.exist?(makefile)
|
||||
end or open(makefile, "w") do |f|
|
||||
f.print dummy_makefile($srcdir)
|
||||
return true
|
||||
|
@ -214,7 +214,7 @@ for dir in ["ext", File::join($top_srcdir, "ext")]
|
|||
end
|
||||
end
|
||||
|
||||
File::makedirs('ext')
|
||||
FileUtils::makedirs('ext')
|
||||
Dir::chdir('ext')
|
||||
|
||||
ext_prefix = "#{$top_srcdir}/ext"
|
||||
|
|
Loading…
Reference in a new issue