ruby-changes:34312
From: nobu <ko1@a...>
Date: Tue, 10 Jun 2014 17:30:17 +0900 (JST)
Subject: [ruby-changes:34312] nobu:r46393 (trunk): win32/setup.mak: separate verconf.mk
nobu 2014-06-10 17:30:01 +0900 (Tue, 10 Jun 2014) New Revision: 46393 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46393 Log: win32/setup.mak: separate verconf.mk * win32/setup.mak (verconf.mk): separate RUBY_RELEASE_DATE from Makefile so that build would not stop everyday. Modified files: trunk/win32/Makefile.sub trunk/win32/setup.mak Index: win32/Makefile.sub =================================================================== --- win32/Makefile.sub (revision 46392) +++ win32/Makefile.sub (revision 46393) @@ -3,7 +3,7 @@ https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L3 SHELL = $(COMSPEC) ECHO1 = $(V:1=@:) RUNCMD = $(COMSPEC) /c -MKFILES = Makefile +MKFILES = Makefile verconf.mk NULL = nul CHDIR = cd PATH_SEPARATOR = ; @@ -403,6 +403,9 @@ MINIPRELUDE_C = miniprelude.c https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L403 RBCONFIG = ./.rbconfig.time !include $(srcdir)/common.mk +!if exist(verconf.mk) +! include verconf.mk +!endif !ifdef SCRIPTPROGRAMS !else if [echo>scriptbin.mk SCRIPTPROGRAMS = \] @@ -456,7 +459,10 @@ test-rubyspec-precheck: https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L459 @exit 1 !endif -$(MKFILES): $(win_srcdir)/Makefile.sub $(win_srcdir)/configure.bat $(win_srcdir)/setup.mak $(win_srcdir)/enc-setup.mak $(srcdir)/common.mk $(srcdir)/enc/Makefile.in +$(MKFILES): $(srcdir)/common.mk $(srcdir)/version.h \ + $(win_srcdir)/Makefile.sub $(win_srcdir)/configure.bat \ + $(win_srcdir)/setup.mak $(win_srcdir)/enc-setup.mak \ + $(srcdir)/enc/Makefile.in $(COMSPEC) /C $(win_srcdir:/=\)\configure.bat $(configure_args) @fc Makefile Makefile.old > nul && echo Makefile unchanged || \ (echo $(MKFILES) was updated, re-run $(MAKE). & exit 1) Index: win32/setup.mak =================================================================== --- win32/setup.mak (revision 46392) +++ win32/setup.mak (revision 46393) @@ -109,7 +109,7 @@ check-psapi.h: nul https://github.com/ruby/ruby/blob/trunk/win32/setup.mak#L109 int main(void) {return (EnumProcesses(NULL,0,NULL) ? 0 : 1);} << --version-: nul +-version-: nul verconf.mk @$(APPEND) @$(CPP) -I$(srcdir) -I$(srcdir)/include <<"Creating $(MAKEFILE)" | findstr "=" >>$(MAKEFILE) #define RUBY_REVISION 0 @@ -118,10 +118,16 @@ MAJOR = RUBY_API_VERSION_MAJOR https://github.com/ruby/ruby/blob/trunk/win32/setup.mak#L118 MINOR = RUBY_API_VERSION_MINOR TEENY = RUBY_API_VERSION_TEENY RUBY_PROGRAM_VERSION = RUBY_VERSION -RUBY_PROGRAM_RELEASE_DATE = RUBY_RELEASE_DATE MSC_VER = _MSC_VER << +verconf.mk: nul + @$(CPP) -I$(srcdir) -I$(srcdir)/include <<"Creating $(@)" | findstr "=" >$(@) +#define RUBY_REVISION 0 +#include "version.h" +RUBY_PROGRAM_RELEASE_DATE = RUBY_RELEASE_DATE +<< + -program-name-: @type << >>$(MAKEFILE) !ifdef PROGRAM_PREFIX -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/