mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Makefile.in: loadpath from loadpath.c
* Makefile.in (loadpath): $LOAD_PATH in miniruby is empty by default now. * win32/Makefile.sub (loadpath): separate for quirky cmd.exe syntax. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
87e352c5a3
commit
67f562a417
3 changed files with 10 additions and 3 deletions
|
@ -464,3 +464,8 @@ $(INSNS): $(srcdir)/insns.def vm_opts.h \
|
|||
$(srcdir)/tool/instruction.rb $(srcdir)/tool/insns2vm.rb
|
||||
$(ECHO) generating $@
|
||||
$(Q) $(BASERUBY) -Ku $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT) $@
|
||||
|
||||
loadpath: verconf.h
|
||||
@$(CPP) $(XCFLAGS) $(CPPFLAGS) $(srcdir)/loadpath.c | \
|
||||
sed -e '1,/^const char ruby_initial_load_paths/d;/;/,$$d' \
|
||||
-e '/^ /!d;s/ *"\\0"$$//;s/" *"//g'
|
||||
|
|
|
@ -185,9 +185,6 @@ $(MKMAIN_CMD): $(MKFILES) all-incs $(PREP) $(RBCONFIG) $(LIBRUBY)
|
|||
|
||||
prog: program wprogram
|
||||
|
||||
loadpath: $(PREP) PHONY
|
||||
$(MINIRUBY) -e 'p $$:'
|
||||
|
||||
$(PREP): $(MKFILES)
|
||||
|
||||
miniruby$(EXEEXT): config.status $(ALLOBJS) $(ARCHFILE) $(DTRACE_OBJ)
|
||||
|
|
|
@ -1126,3 +1126,8 @@ INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc insns_info.inc \
|
|||
! if [del insns_rules.mk > nul]
|
||||
! endif
|
||||
!endif
|
||||
|
||||
loadpath: verconf.h
|
||||
@$(CPP) $(XCFLAGS) $(CPPFLAGS) $(srcdir)/loadpath.c | \
|
||||
sed -e '1,/^const char ruby_initial_load_paths/d;/;/,$$d' \
|
||||
-e '/^^ /!d;s/ *"\\\\0"$$//;s/" *"//g'
|
||||
|
|
Loading…
Add table
Reference in a new issue