summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-24 10:29:17 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-24 10:29:17 +0000
commitae1be89d0fc6b4bd6127ce5e4919106a17b17db6 (patch)
tree240751e222b5dbfaa19257c451e314f7dcdf117e /lib
parent8a18dc056e7c5d904233a5dc437c01003523a50d (diff)
* ext/extmk.rb.in, lib/mkmf.rb: dig the target subdirectory for
lib/* files properly in case of create_makefile("dir/name"). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 7c57abb9cd..f0684649d6 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -149,8 +149,11 @@ def install_rb(mfile, dest, srcdir = nil)
end
end
for f in dir
- next if f == "."
- mfile.printf "\t@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' %s/%s\n", dest, f
+ if f == "."
+ mfile.printf "\t@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' %s\n", dest
+ else
+ mfile.printf "\t@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' %s/%s\n", dest, f
+ end
end
for f in path
d = '/' + File::dirname(f)