summaryrefslogtreecommitdiffstats
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-23 14:24:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-23 14:24:51 +0000
commitdc5a8c07f65ac4a8a8542ac59b13cd8a130d8061 (patch)
treed276dda4c8a5e5b0fce6ae73f7d44af64c9e9ab1 /lib/mkmf.rb
parent5d60d28a03aa4dd552d31e9e09fe0186c2de0b3f (diff)
downloadruby-dc5a8c07f65ac4a8a8542ac59b13cd8a130d8061.tar.gz
ruby-dc5a8c07f65ac4a8a8542ac59b13cd8a130d8061.tar.xz
ruby-dc5a8c07f65ac4a8a8542ac59b13cd8a130d8061.zip
* lib/mkmf.rb: $hdrdir should not contain macros, for backward
compatibility. [bruby-dev:28] * lib/mkmf.rb (create_makefile): in the case of extout, just copy script files, without comparison. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 307c5b314..2b0612d77 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -80,8 +80,7 @@ end
libdir = File.dirname(__FILE__)
$extmk = libdir != Config::CONFIG["rubylibdir"]
if not $extmk and File.exist?(Config::CONFIG["archdir"] + "/ruby.h")
- $topdir = Config::CONFIG["archdir"]
- $hdrdir = $archdir
+ $hdrdir = $topdir = Config::CONFIG["archdir"]
elsif File.exist?(($top_srcdir ||= File.dirname(libdir)) + "/ruby.h") and
File.exist?(($topdir ||= Config::CONFIG["topdir"]) + "/config.h")
$hdrdir = $top_srcdir
@@ -782,6 +781,7 @@ RM = #{config_string('RM') || '$(RUBY) -run -e rm -- -f'}
MAKEDIRS = $(RUBY) -run -e mkdir -- -p
INSTALL_PROG = $(RUBY) -run -e install -- -vpm 0755
INSTALL_DATA = $(RUBY) -run -e install -- -vpm 0644
+COPY = $(RUBY) -run -e cp -- -v
#### End of system configuration section. ####
@@ -939,7 +939,7 @@ static: $(STATIC_LIB)
files.each do |f|
dest = "#{dir}/#{File.basename(f)}"
mfile.print("install-rb: #{dest}\n")
- mfile.print("#{dest}: #{f}\n\t@$(INSTALL_DATA) #{f} #{dir}\n")
+ mfile.print("#{dest}: #{f}\n\t@$(#{$extout ? 'COPY' : 'INSTALL_DATA'}) #{f} #{dir}\n")
end
end
end