diff --git a/ChangeLog b/ChangeLog index bcafa1d010..1766cb99e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon May 19 13:01:05 2008 Nobuyoshi Nakada + + * common.mk ({MSPEC,RUBYSPEC}_GIT_URL): moved from Makefine.in. + + * {win32,bcc32}/Makefile.sub (update-rubyspec): added. + Mon May 19 11:53:45 2008 Akinori MUSHA * ext/openssl/openssl_missing.c (HMAC_CTX_copy): adopted diff --git a/Makefile.in b/Makefile.in index e21785deca..18537a53ad 100644 --- a/Makefile.in +++ b/Makefile.in @@ -182,9 +182,6 @@ distclean-local:: ext/extinit.$(OBJEXT): ext/extinit.c $(SETUP) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(OUTFLAG)$@ -c ext/extinit.c -MSPEC_GIT_URL=git://github.com/brixen/mspec.git -RUBYSPEC_GIT_URL=git://github.com/brixen/rubyspec.git - update-rubyspec: if [ -d $(srcdir)/rubyspec ]; then \ cd $(srcdir)/rubyspec/mspec; \ diff --git a/bcc32/Makefile.sub b/bcc32/Makefile.sub index 67dbdb0ede..98e0b3da23 100644 --- a/bcc32/Makefile.sub +++ b/bcc32/Makefile.sub @@ -471,6 +471,38 @@ distclean-local:: @$(RM) ext\config.cache $(RBCONFIG:/=\) @$(RM) $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc +update-rubyspec: + @echo SPEC_EXISTS=0 > $@.mk + @if exist $(srcdir:/=\)\rubyspec\nul echo SPEC_EXISTS=1 >> $@.mk + @type >> $@.mk &&| +$()update-rubyspec: +$() @del $@.mk +$()!if $$(SPEC_EXISTS) +$() cd $(srcdir:/=\)\rubyspec\mspec +$() git pull +$() cd ..\spec\rubyspec +$() git pull +$()!else +$() git clone $(MSPEC_GIT_URL) $(srcdir)/rubyspec/mspec +$() git clone $(RUBYSPEC_GIT_URL) $(srcdir)/rubyspec/spec/rubyspec +$()!endif +| + @$(MAKE) -$(MAKEFLAGS)$(MFLAGS) -f $@.mk + +test-rubyspec: + @echo SPEC_EXISTS=0 > $@.mk + @if exist $(srcdir:/=\)\rubyspec\nul echo SPEC_EXISTS=1 >> $@.mk + @type >> $@.mk &&| +$()test-rubyspec: +$()!if $$(SPEC_EXISTS) +$() $(RUNRUBY) $(srcdir)/rubyspec/mspec/bin/mspec -r$(srcdir)/ext/purelib.rb $(srcdir)/rubyspec/spec/rubyspec/$(MAJOR).$(MINOR) +$()!else +$() @echo No rubyspec here. put rubyspec to srcdir first. +$() @cd $(srcdir:/=\)\rubyspec +$()!endif +| + @$(MAKE) -$(MAKEFLAGS) -f $@.mk + ext/extinit.obj: ext/extinit.c $(SETUP) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -o$@ -c ext/extinit.c diff --git a/common.mk b/common.mk index ccf853d432..a026554036 100644 --- a/common.mk +++ b/common.mk @@ -5,6 +5,10 @@ dll: $(LIBRUBY_SO) RUBYLIB = - RUBYOPT = - +SPEC_GIT_BASE = git://github.com/brixen +MSPEC_GIT_URL = $(SPEC_GIT_BASE)/mspec.git +RUBYSPEC_GIT_URL = $(SPEC_GIT_BASE)/rubyspec.git + STATIC_RUBY = static-ruby EXTCONF = extconf.rb diff --git a/win32/Makefile.sub b/win32/Makefile.sub index ab83ace2c5..85b58ac586 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -233,14 +233,6 @@ ASMEXT = asm INSTALLED_LIST= .installed.list -!if [find "revision.h" $(srcdir:/=\)\version.h > nul 2> nul] == 0 -REVISION_H = revision.h -REVISION_UP = revision-up -!else -REVISION_H = version.h -REVISION_UP = -!endif - !if !defined(WINMAINOBJ) WINMAINOBJ = winmain.$(OBJEXT) !endif @@ -639,10 +631,24 @@ class File end <