summaryrefslogtreecommitdiff
path: root/win32/Makefile.sub
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-25 09:27:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-25 09:27:30 +0000
commit6d91bf3b0c423f647094846b8c9ec2c8d9829f9e (patch)
treeee9aead6dcce83d168b8d51c302d436a034ff87c /win32/Makefile.sub
parenta984e00b80d78fdb9f6d2e0ec3bdfb0a80a06105 (diff)
* common.mk (revision.h): extracts revision number with ``svn info''.
* common.mk (up): target to update from the repository. * Makefile.in, {win,bcc}32/Makefile.sub (IFCHANGE): tool to update a file if changed. * tool/ifchange: for unixen. * win32/ifchange.bat: some fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r--win32/Makefile.sub11
1 files changed, 2 insertions, 9 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 6ce665912e..9f2c309ead 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -63,6 +63,7 @@ YFLAGS = -o y.tab.c
AR = lib -nologo
PURIFY =
AUTOCONF = autoconf
+IFCHANGE = $(COMSPEC) /C $(srcdir:/=\)\win32\ifchange.bat
RM = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat
CP = copy > nul
MV = move > nul
@@ -246,14 +247,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
@@ -307,7 +300,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
!if !exist("$(arch_hdrdir)/ruby")
@md $(arch_hdrdir:/=\)\ruby
!endif
- @$(COMSPEC) /C $(srcdir:/=\)\win32\ifchange.bat $(RUBY_CONFIG_H:/=\) <<
+ @$(IFCHANGE) $(RUBY_CONFIG_H:/=\) <<
#if _MSC_VER != $(MSC_VER)
#error MSC version unmatch: _MSC_VER: $(MSC_VER) is expected.
#endif