diff --git a/Makefile.in b/Makefile.in index cabff9b9d2..5ac7d558d6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -414,7 +414,7 @@ clean-local:: $(Q)$(RM) ext/extinit.c ext/extinit.$(OBJEXT) ext/ripper/y.output \ enc/encinit.c enc/encinit.$(OBJEXT) -$(Q)$(RM) $(pkgconfig_DATA) - -$(Q)$(RMALL) bin/$(PROGRAM) ruby-runner.h *.dSYM + -$(Q)$(RMALL) exe/ ruby-runner.h *.dSYM distclean-local:: $(Q)$(RM) ext/config.cache $(RBCONFIG) Doxyfile diff --git a/common.mk b/common.mk index c7d044ca93..a3caea7c3c 100644 --- a/common.mk +++ b/common.mk @@ -777,12 +777,12 @@ $(PLATFORM_D): $(Q) $(MAKEDIRS) $(PLATFORM_DIR) $(@D) @exit > $@ -bin/$(PROGRAM): ruby-runner.c ruby-runner.h $(TIMESTAMPDIR)/.bin.time +exe/$(PROGRAM): ruby-runner.c ruby-runner.h exe/.time $(Q) $(PURIFY) $(CC) $(CFLAGS) $(CPPFLAGS) -DRUBY_INSTALL_NAME=$(@F) $(LDFLAGS) $(LIBS) $(OUTFLAG)$@ $< -$(TIMESTAMPDIR)/.bin.time: - $(Q) $(MAKEDIRS) bin $(@D) - $(Q) exit > $@ +exe/.time: + $(Q) $(MAKEDIRS) exe $(@D) + @exit > $@ $(BUILTIN_ENCOBJS) $(BUILTIN_TRANSOBJS): $(ENC_TRANS_D) diff --git a/configure.in b/configure.in index ad94b75e5f..6b4d5e46b1 100644 --- a/configure.in +++ b/configure.in @@ -4028,7 +4028,7 @@ AS_CASE("$cross_compiling:${LIBPATHENV}", [yes:* | no:], [], [ AC_MSG_CHECKING(whether wrapper for $LIBPATHENV is needed) AS_IF([env ${LIBPATHENV}=/lib /bin/sh -c ': ${'${LIBPATHENV}'?}' 2>/dev/null], [AC_MSG_RESULT(no)], - [PREP="$PREP"' bin/$(PROGRAM)' + [PREP="$PREP"' exe/$(PROGRAM)' AC_MSG_RESULT(yes)] ) ]) diff --git a/tool/runruby.rb b/tool/runruby.rb index 23d835536e..20f37487a9 100755 --- a/tool/runruby.rb +++ b/tool/runruby.rb @@ -74,7 +74,7 @@ env = { 'RUBY_FIBER_MACHINE_STACK_SIZE' => '1', } -runner = File.join(abs_archdir, "bin/ruby#{config['EXEEXT']}") +runner = File.join(abs_archdir, "exe/ruby#{config['EXEEXT']}") runner = nil unless File.exist?(runner) abs_ruby = runner || File.expand_path(ruby) env["RUBY"] = abs_ruby