summaryrefslogtreecommitdiffstats
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
commit24561edfe00c06459aaca2428c3da2200800e423 (patch)
tree98dfc31e975c441748697987d24e82acd1271c47 /lib
parent5252c8dd5c43e6c112459fcf2f837efcc2c081d9 (diff)
downloadruby-24561edfe00c06459aaca2428c3da2200800e423.tar.gz
ruby-24561edfe00c06459aaca2428c3da2200800e423.tar.xz
ruby-24561edfe00c06459aaca2428c3da2200800e423.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@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 4c375a884..93a548fc3 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -154,8 +154,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)