1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

setup.mak: make Makefile stable

* win32/setup.mak (-basic-vars-): moved BASERUBY and HAVE_BASERUBY
  definition to make Makefile stable when they have been defaulted.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-12-03 04:41:06 +00:00
parent 99d7138743
commit e61e19a2fe

View file

@ -48,12 +48,9 @@ EXTSTATIC = $(EXTSTATIC)
!if defined(RDOCTARGET)
RDOCTARGET = $(RDOCTARGET)
!endif
!if defined(EXTOUT)
!if defined(EXTOUT) && "$(EXTOUT)" != ".ext"
EXTOUT = $(EXTOUT)
!endif
!if defined(BASERUBY)
BASERUBY = $(BASERUBY:/=\)
!endif
!if defined(NTVER)
NTVER = $(NTVER)
!endif
@ -66,19 +63,21 @@ ENABLE_DEBUG_ENV = $(ENABLE_DEBUG_ENV)
# TOOLS
<<
!if !defined(BASERUBY)
@for %I in (ruby.exe) do @echo BASERUBY = %~s$$PATH:I>> $(MAKEFILE)
@echo !if "$$(BASERUBY)" == "">> $(MAKEFILE)
@echo BASERUBY = echo executable host ruby is required. use --with-baseruby option.^& exit 1 >> $(MAKEFILE)
@echo HAVE_BASERUBY = no>> $(MAKEFILE)
@echo !else>> $(MAKEFILE)
@echo HAVE_BASERUBY = yes>> $(MAKEFILE)
@echo !endif>> $(MAKEFILE)
!elseif [$(BASERUBY) -eexit 2> nul] == 0
@echo HAVE_BASERUBY = yes>> $(MAKEFILE)
!if defined(BASERUBY)
@echo BASERUBY = $(BASERUBY:/=\)>> $(MAKEFILE)
!else
@echo HAVE_BASERUBY = no>> $(MAKEFILE)
@for %I in (ruby.exe) do @echo BASERUBY = %~s$$PATH:I>> $(MAKEFILE)
!endif
@type << >> $(MAKEFILE)
$(BANG)if "$$(BASERUBY)" == ""
BASERUBY = echo executable host ruby is required. use --with-baseruby option.^& exit 1
HAVE_BASERUBY = no
$(BANG)elseif [$$(BASERUBY) -eexit 2> nul] == 0
HAVE_BASERUBY = yes
$(BANG)else
HAVE_BASERUBY = no
$(BANG)endif
<<
!if "$(GIT)" != ""
@echo GIT = $(GIT)>> $(MAKEFILE)
!endif