* win32/Makefile.sub (scriptbin): create script binaries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6fcd0b37b3
commit
7ae23d32c2
@ -1,3 +1,7 @@
|
|||||||
|
Thu Nov 18 23:56:32 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* win32/Makefile.sub (scriptbin): create script binaries.
|
||||||
|
|
||||||
Thu Nov 18 23:21:23 2010 Kouhei Sutou <kou@cozmixng.org>
|
Thu Nov 18 23:21:23 2010 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
* lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):
|
* lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):
|
||||||
|
@ -44,6 +44,7 @@ RUBYW_INSTALL_NAME = $(RUBY_INSTALL_NAME:ruby=rubyw)
|
|||||||
!if "$(RUBYW_INSTALL_NAME)" == "$(RUBY_INSTALL_NAME)"
|
!if "$(RUBYW_INSTALL_NAME)" == "$(RUBY_INSTALL_NAME)"
|
||||||
RUBYW_INSTALL_NAME = $(RUBY_INSTALL_NAME)w
|
RUBYW_INSTALL_NAME = $(RUBY_INSTALL_NAME)w
|
||||||
!endif
|
!endif
|
||||||
|
STUBPROGRAM = rubystub$(EXEEXT)
|
||||||
!if !defined(icondirs) && defined(ICONDIRS)
|
!if !defined(icondirs) && defined(ICONDIRS)
|
||||||
icondirs=$(ICONDIRS)
|
icondirs=$(ICONDIRS)
|
||||||
!endif
|
!endif
|
||||||
@ -348,6 +349,31 @@ all: $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub $(srcdir)/common.mk
|
|||||||
|
|
||||||
ruby: $(PROGRAM)
|
ruby: $(PROGRAM)
|
||||||
rubyw: $(WPROGRAM)
|
rubyw: $(WPROGRAM)
|
||||||
|
stub: $(STUBPROGRAM)
|
||||||
|
|
||||||
|
!ifdef SCRIPTPROGRAMS
|
||||||
|
!else if [echo>scriptbin.mk SCRIPTPROGRAMS = \]
|
||||||
|
!else if [for %I in ($(srcdir:/=\)\bin\*) do @echo>>scriptbin.mk %~nI.exe \]
|
||||||
|
!else if [echo.>>scriptbin.mk]
|
||||||
|
!else if [echo.>>scriptbin.mk]
|
||||||
|
!else
|
||||||
|
!include scriptbin.mk
|
||||||
|
!endif
|
||||||
|
!if [for %I in ($(srcdir:/=\)\bin\*) do @for %J in (\
|
||||||
|
"%~nI.exe: $$(srcdir)/bin/%~nI" \
|
||||||
|
" @echo generating $$@" \
|
||||||
|
" @copy /b $$(STUBPROGRAM) +<< +$$(srcdir:/=\)\bin\%~nI $$@ > nul" \
|
||||||
|
"" "<<" "" \
|
||||||
|
) do @echo.%~J>>scriptbin.mk]
|
||||||
|
!else
|
||||||
|
! include scriptbin.mk
|
||||||
|
! if [del scriptbin.mk > nul]
|
||||||
|
! endif
|
||||||
|
!endif
|
||||||
|
|
||||||
|
scriptbin: $(SCRIPTPROGRAMS)
|
||||||
|
|
||||||
|
$(SCRIPTPROGRAMS): $(STUBPROGRAM)
|
||||||
|
|
||||||
up::
|
up::
|
||||||
@cd "$(srcdir:/=\)" && set LC_TIME=C && $(VCSUP)
|
@cd "$(srcdir:/=\)" && set LC_TIME=C && $(VCSUP)
|
||||||
@ -816,6 +842,16 @@ $(WPROGRAM): $(MAINOBJ) $(WINMAINOBJ) $(LIBRUBY_SO) $(RUBYW_INSTALL_NAME).res
|
|||||||
$(Q) $(LDSHARED_2)
|
$(Q) $(LDSHARED_2)
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
!if "$(STUBPROGRAM)" != ""
|
||||||
|
$(STUBPROGRAM): stub.$(OBJEXT) $(LIBRUBY_SO) $(RUBY_INSTALL_NAME).res
|
||||||
|
$(ECHO) linking $(@:\=/)
|
||||||
|
$(Q) $(PURIFY) $(CC) stub.$(OBJEXT) $(RUBY_INSTALL_NAME).res \
|
||||||
|
$(OUTFLAG)$@ $(LIBRUBYARG) -link $(LDFLAGS) $(XLDFLAGS)
|
||||||
|
$(Q) $(LDSHARED_0)
|
||||||
|
$(Q) $(LDSHARED_1)
|
||||||
|
$(Q) $(LDSHARED_2)
|
||||||
|
!endif
|
||||||
|
|
||||||
$(LIBRUBY_A): $(OBJS) $(DMYEXT)
|
$(LIBRUBY_A): $(OBJS) $(DMYEXT)
|
||||||
$(ECHO) linking static-library $(@:\=/)
|
$(ECHO) linking static-library $(@:\=/)
|
||||||
$(Q) $(AR) $(ARFLAGS)$@ $(OBJS) $(DMYEXT)
|
$(Q) $(AR) $(ARFLAGS)$@ $(OBJS) $(DMYEXT)
|
||||||
@ -989,18 +1025,16 @@ ext/extinit.obj: ext/extinit.c $(SETUP)
|
|||||||
INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc insns_info.inc \
|
INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc insns_info.inc \
|
||||||
vmtc.inc vm.inc
|
vmtc.inc vm.inc
|
||||||
|
|
||||||
!ifdef insns
|
!if [exit > insns_rules.mk]
|
||||||
make_insns_rules:
|
!else if [for %I in ($(INSNS)) do \
|
||||||
@type <<
|
@for %J in (\
|
||||||
$(insns): $$(srcdir)/insns.def {$$(VPATH)}vm_opts.h \
|
"%I: $$(srcdir)/insns.def {$$(VPATH)}vm_opts.h \\" \
|
||||||
$$(srcdir)/defs/opt_operand.def $$(srcdir)/defs/opt_insn_unif.def \
|
" $$(srcdir)/defs/opt_operand.def $$(srcdir)/defs/opt_insn_unif.def \\" \
|
||||||
$$(srcdir)/tool/instruction.rb $$(srcdir)/tool/insns2vm.rb
|
" $$(srcdir)/tool/instruction.rb $$(srcdir)/tool/insns2vm.rb" \
|
||||||
@$$(RM) $$(PROGRAM)
|
" @$$(RM) $$(PROGRAM)" \
|
||||||
$$(BASERUBY) -Ks $$(srcdir)/tool/insns2vm.rb $$(INSNS2VMOPT) $(insns)
|
" $$(BASERUBY) -Ks $$(srcdir)/tool/insns2vm.rb $$(INSNS2VMOPT) %I" \
|
||||||
|
"" \
|
||||||
<<
|
) do @echo.%~J>>insns_rules.mk]
|
||||||
!else if [exit > insns_rules.mk]
|
|
||||||
!else if [for %I in ($(INSNS)) do @$(MAKE) -l insns=%I make_insns_rules >> insns_rules.mk]
|
|
||||||
!else
|
!else
|
||||||
! include insns_rules.mk
|
! include insns_rules.mk
|
||||||
! if [del insns_rules.mk > nul]
|
! if [del insns_rules.mk > nul]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user