diff --git a/ChangeLog b/ChangeLog index c3fa00b460..8cd130eb2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Sat Jul 14 02:56:19 2001 Akinori MUSHA + + * ext/extmk.rb.in: support multi-level ext/ directories. + (e.g. you can have ext/foo, ext/foo/bar and ext/foo/baz) + +Sat Jul 14 02:55:02 2001 Akinori MUSHA + + * ext/.cvsignore: let cvs ignore extinit.c. + Fri Jul 13 22:26:09 2001 Akinori MUSHA * lib/mkmf.rb: use File::split to split a target into a prefix and diff --git a/ext/.cvsignore b/ext/.cvsignore index f1e43e7724..a3fac48ae6 100644 --- a/ext/.cvsignore +++ b/ext/.cvsignore @@ -1,2 +1,3 @@ +extinit.c extmk.log extmk.rb diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index adbc350b80..53cb46ae17 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -174,10 +174,10 @@ def install_rb(mfile, srcdir = nil) end for f in dir next if f == "." - mfile.printf "\t@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(DESTDIR)$(pkglibdir)/%s\n", f + mfile.printf "\t@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(DESTDIR)$(pkglibdir)$(target_prefix)/%s\n", f 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)/%s\n", f, f + 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 end end @@ -436,6 +436,7 @@ libdir = @libdir@ #pkglibdir = $(libdir)/$(RUBY_INSTALL_NAME)/@MAJOR@.@MINOR@ pkglibdir = $(libdir)/ruby/@MAJOR@.@MINOR@ archdir = $(pkglibdir)/@arch@ +target_prefix = #{target_prefix} @SET_MAKE@ #### End of system configuration section. #### @@ -491,11 +492,12 @@ EOS mfile.printf < 0 $extinit += format("\ \tInit_%s();\n\ \trb_provide(\"%s.so\");\n\ -", t, t) +", t, s) $extobjs += "ext/" $extobjs += f $extobjs += " "