diff --git a/ChangeLog b/ChangeLog index b298a5e5ed..ee72e0c89d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +Thu Sep 5 01:24:26 2002 WATANABE Hirofumi + + * extmk.rb (create_makefile): add macro MAKEDIRS, INSTALL_PROG, + INSTALL_DATA. + + * extmk.rb (create_makefile): support for building to any directory. + + * extmk.rb (xsystem): move to mkmf.rb. + + * mkmf.rb (xsystem): support for extmk.rb + + * mkmf.rb ($CPP): remove '-E' option. add CPPFLAGS. + Wed Sep 4 15:23:23 2002 Yukihiro Matsumoto * class.c (rb_make_metaclass): obj.meta.super.meta should be equal @@ -17,7 +30,7 @@ Tue Sep 3 17:12:59 2002 WATANABE Hirofumi * extmk.rb: require mkmf.rb. remove duplicate methods. use Config::CONFIG["FOO"] instead of @FOO@. - * mkmf.rb: extmk.rb support. + * mkmf.rb: support for extmk.rb. Mon Sep 2 23:01:50 2002 Nobuyoshi Nakada @@ -6205,7 +6218,7 @@ Mon May 21 13:15:25 2001 Yukihiro Matsumoto Sat May 19 09:29:07 2001 Yukihiro Matsumoto - * process.c (rb_proc_times): need not to check retrun value from + * process.c (rb_proc_times): need not to check return value from times(2). Fri May 18 05:36:08 2001 Akinori MUSHA @@ -7093,7 +7106,7 @@ Sat Mar 10 22:56:44 2001 Yukihiro Matsumoto block returns true for all elements. * enum.c (enum_any): new method 'any?', which returns true if - block retruns true for any of elements. + block returns true for any of elements. Sat Mar 10 02:34:18 2001 WATANABE Hirofumi diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index 54f11766a5..77da315df4 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -44,23 +44,6 @@ $log = nil $orgerr = $stderr.dup $orgout = $stdout.dup -def xsystem command - if $DEBUG - puts command - $stdout.flush - return system(command) - end - $log ||= open(File.join($topdir, 'ext', 'extmk.log'), 'w') - $stderr.reopen($log) - $stdout.reopen($log) - puts command - $stdout.flush - system(command) -ensure - $stderr.reopen($orgerr) - $stdout.reopen($orgout) -end - $LINK = "#{CONFIG['CC']} #{OUTFLAG}conftest -I#$topdir -I#$top_srcdir #{CFLAGS} %s %s #{CONFIG['LDFLAGS']} %s conftest.c %s %s #{CONFIG['LIBS']}" $CPP = "#{CONFIG['CPP']} #{CONFIG['CPPFLAGS']} %s -I#$topdir -I#$top_srcdir #{CFLAGS} %s %s conftest.c" @@ -150,10 +133,12 @@ EOL RUBY_INSTALL_NAME = #{CONFIG['RUBY_INSTALL_NAME']} RUBY_SO_NAME = #{CONFIG['RUBY_SO_NAME']} +ruby_version = #{Config::CONFIG["ruby_version"]} prefix = #{CONFIG['prefix']} exec_prefix = #{CONFIG['exec_prefix']} libdir = #{CONFIG['libdir']} +rubylibdir = $(libdir)/ruby/$(ruby_version) #pkglibdir = $(libdir)/$(RUBY_INSTALL_NAME)/#{CONFIG['MAJOR']}.#{CONFIG['MINOR']} pkglibdir = $(libdir)/ruby/#{CONFIG['MAJOR']}.#{CONFIG['MINOR']} archdir = $(pkglibdir)/#{CONFIG['arch']} @@ -203,6 +188,9 @@ DLLIB = $(TARGET).#{$static ? $LIBEXT : CONFIG['DLEXT']} RUBY = #{ruby_interpreter} -I$(topdir) -I$(hdrdir)/lib RM = $(RUBY) -rftools -e "File::rm_f(*ARGV.map do|x|Dir[x]end.flatten.uniq)" +MAKEDIRS = $(RUBY) -r ftools -e 'File::makedirs(*ARGV)' +INSTALL_PROG = $(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0555, true)' +INSTALL_DATA = $(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)' EXEEXT = CONFIG['EXEEXT'] @@ -229,15 +217,17 @@ EOS mfile.printf <