summaryrefslogtreecommitdiff
path: root/ext/extmk.rb.in
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
commite54216b7409d9e4d7d56f089703ea0d79f57ea1c (patch)
tree98dfc31e975c441748697987d24e82acd1271c47 /ext/extmk.rb.in
parentea82a51a15f25293812c2641cbe620b0ec998ab6 (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/trunk@1645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb.in')
-rw-r--r--ext/extmk.rb.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index cb503bd..b97902e 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -173,8 +173,11 @@ def install_rb(mfile, srcdir = nil)
end
end
for f in dir
- next if f == "."
- mfile.printf "\t@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(DESTDIR)$(pkglibdir)$(target_prefix)/%s\n", f
+ if f == "."
+ mfile.print "\t@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(DESTDIR)$(pkglibdir)$(target_prefix)\n"
+ else
+ mfile.printf "\t@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(DESTDIR)$(pkglibdir)$(target_prefix)/%s\n", f
+ end
end
for f in path
mfile.printf "\t@$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)' $(srcdir)/lib/%s $(DESTDIR)$(pkglibdir)$(target_prefix)/%s\n", f, f