ruby-changes:6565
From: usa <ko1@a...>
Date: Tue, 15 Jul 2008 23:03:14 +0900 (JST)
Subject: [ruby-changes:6565] Ruby:r18081 (ruby_1_8): * {bcc32,win32}/Makefile.sub (ruby_version): follow changes in
usa 2008-07-15 23:03:03 +0900 (Tue, 15 Jul 2008) New Revision: 18081 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18081 Log: * {bcc32,win32}/Makefile.sub (ruby_version): follow changes in configure.in. Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/bcc32/Makefile.sub branches/ruby_1_8/win32/Makefile.sub Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 18080) +++ ruby_1_8/ChangeLog (revision 18081) @@ -1,3 +1,8 @@ +Tue Jul 15 23:00:17 2008 NAKAMURA Usaku <usa@r...> + + * {bcc32,win32}/Makefile.sub (ruby_version): follow changes in + configure.in. + Tue Jul 15 21:58:20 2008 Nobuyoshi Nakada <nobu@r...> * ext/tk/{,tkutil/}extconf.rb: ruby/ruby.h no longer needs to be Index: ruby_1_8/bcc32/Makefile.sub =================================================================== --- ruby_1_8/bcc32/Makefile.sub (revision 18080) +++ ruby_1_8/bcc32/Makefile.sub (revision 18081) @@ -11,6 +11,10 @@ !error RT not defined. Retry from configure pass. !endif +!if !defined(ruby_version) +ruby_version = $(MAJOR).$(MINOR) +!endif + ## variables may be overridden by $(compile_dir)/Makefile !ifndef srcdir srcdir = .. @@ -105,7 +109,7 @@ EXTOUT = .ext !endif !ifndef RIDATADIR -RIDATADIR = $(DESTDIR)$(datadir)/ri/$(MAJOR).$(MINOR)/system +RIDATADIR = $(DESTDIR)$(datadir)/ri/$(ruby_version)/system !endif !ifndef TESTUI TESTUI = console @@ -295,15 +299,15 @@ \#define STACK_GROW_DIRECTION -1 \#define DEFAULT_KCODE KCODE_NONE \#define DLEXT ".so" -\#define RUBY_LIB "/lib/ruby/$(MAJOR).$(MINOR)" +\#define RUBY_LIB "/lib/ruby/$(ruby_version)" \#define RUBY_SITE_LIB "/lib/ruby/site_ruby" -\#define RUBY_SITE_LIB2 "/lib/ruby/site_ruby/$(MAJOR).$(MINOR)" +\#define RUBY_SITE_LIB2 "/lib/ruby/site_ruby/$(ruby_version)" \#define RUBY_VENDOR_LIB "/lib/ruby/vendor_ruby" -\#define RUBY_VENDOR_LIB2 "/lib/ruby/vendor_ruby/$(MAJOR).$(MINOR)" +\#define RUBY_VENDOR_LIB2 "/lib/ruby/vendor_ruby/$(ruby_version)" \#define RUBY_PLATFORM "$(ARCH)-$(OS)" -\#define RUBY_ARCHLIB "/lib/ruby/$(MAJOR).$(MINOR)/$(ARCH)-$(OS)" -\#define RUBY_SITE_ARCHLIB "/lib/ruby/site_ruby/$(MAJOR).$(MINOR)/$(ARCH)-$(OS)" -\#define RUBY_VENDOR_ARCHLIB "/lib/ruby/vendor_ruby/$(MAJOR).$(MINOR)/$(ARCH)-$(OS)" +\#define RUBY_ARCHLIB "/lib/ruby/$(ruby_version)/$(ARCH)-$(OS)" +\#define RUBY_SITE_ARCHLIB "/lib/ruby/site_ruby/$(ruby_version)/$(ARCH)-$(OS)" +\#define RUBY_VENDOR_ARCHLIB "/lib/ruby/vendor_ruby/$(ruby_version)/$(ARCH)-$(OS)" | @exit > $@ @@ -414,6 +418,7 @@ s,@TRY_LINK@,$$(CC) -oconftest $$(INCFLAGS) -I$$(hdrdir) $$(CPPFLAGS) $$(CFLAGS) $$(LIBPATH) $$(LDFLAGS) $$(src) $$(LOCAL_LIBS) $$(LIBS),;t t s,@EXPORT_PREFIX@,_,;t t s,@arch@,$(ARCH)-$(OS),;t t +s,@ruby_version@,$(ruby_version),;t t s,@sitearch@,$(ARCH)-$(OS),;t t s,@sitedir@,$${prefix}/lib/ruby/site_ruby,;t t s,@vendordir@,$${prefix}/lib/ruby/vendor_ruby,;t t Index: ruby_1_8/win32/Makefile.sub =================================================================== --- ruby_1_8/win32/Makefile.sub (revision 18080) +++ ruby_1_8/win32/Makefile.sub (revision 18081) @@ -98,6 +98,9 @@ !endif arch = $(ARCH)-$(OS) +!if !defined(ruby_version) +ruby_version = $(MAJOR).$(MINOR) +!endif !ifndef RUBY_SO_NAME RUBY_SO_NAME = $(RT)-$(RUBY_INSTALL_NAME)$(MAJOR)$(MINOR) @@ -122,7 +125,7 @@ EXTOUT = .ext !endif !ifndef RIDATADIR -RIDATADIR = $(DESTDIR)$(datadir)/ri/$(MAJOR).$(MINOR)/system +RIDATADIR = $(DESTDIR)$(datadir)/ri/$(ruby_version)/system !endif !ifndef TESTUI TESTUI = console @@ -397,15 +400,15 @@ #define DEFAULT_KCODE KCODE_NONE #define DLEXT ".so" #define DLEXT2 ".dll" -#define RUBY_LIB "/lib/ruby/$(MAJOR).$(MINOR)" +#define RUBY_LIB "/lib/ruby/$(ruby_version)" #define RUBY_SITE_LIB "/lib/ruby/site_ruby" -#define RUBY_SITE_LIB2 "/lib/ruby/site_ruby/$(MAJOR).$(MINOR)" +#define RUBY_SITE_LIB2 "/lib/ruby/site_ruby/$(ruby_version)" #define RUBY_VENDOR_LIB "/lib/ruby/vendor_ruby" -#define RUBY_VENDOR_LIB2 "/lib/ruby/vendor_ruby/$(MAJOR).$(MINOR)" +#define RUBY_VENDOR_LIB2 "/lib/ruby/vendor_ruby/$(ruby_version)" #define RUBY_PLATFORM "$(arch)" -#define RUBY_ARCHLIB "/lib/ruby/$(MAJOR).$(MINOR)/$(ARCH)-$(OS)" -#define RUBY_SITE_ARCHLIB "/lib/ruby/site_ruby/$(MAJOR).$(MINOR)/$(ARCH)-$(RT)" -#define RUBY_VENDOR_ARCHLIB "/lib/ruby/vendor_ruby/$(MAJOR).$(MINOR)/$(ARCH)-$(RT)" +#define RUBY_ARCHLIB "/lib/ruby/$(ruby_version)/$(ARCH)-$(OS)" +#define RUBY_SITE_ARCHLIB "/lib/ruby/site_ruby/$(ruby_version)/$(ARCH)-$(RT)" +#define RUBY_VENDOR_ARCHLIB "/lib/ruby/vendor_ruby/$(ruby_version)/$(ARCH)-$(RT)" #define LIBRUBY_SO "$(LIBRUBY_SO)" #if 0 $(BANG)if "$(RUBY_SO_NAME)"!="$$(RUBY_SO_NAME)" || "$(ARCH)-$(OS)"!="$$(ARCH)-$$(OS)" @@ -552,6 +555,7 @@ s,@EXPORT_PREFIX@, ,;t t s,@arch@,$(ARCH)-$(OS),;t t s,@sitearch@,$(ARCH)-$(RT),;t t +s,@ruby_version@,$(ruby_version),;t t s,@sitedir@,$${prefix}/lib/ruby/site_ruby,;t t s,@vendordir@,$${prefix}/lib/ruby/vendor_ruby,;t t s,@configure_args@,--with-make-prog=nmake --enable-shared $(configure_args),;t t -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/