Create RUBYCOMMONDIR directory in advance

As well as the directory per architecture.

Closes https://github.com/ruby/ruby/pull/2669
This commit is contained in:
Nobuyoshi Nakada 2019-11-12 16:35:01 +09:00
parent 14db635097
commit fb02e3192c
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -58,6 +58,7 @@ DOCLIE_GIT_REF = v1.3.2
STATIC_RUBY = static-ruby
TIMESTAMPDIR = $(EXTOUT)/.timestamp
RUBYCOMMONDIR = $(EXTOUT)/common
EXTCONF = extconf.rb
LIBRUBY_EXTS = ./.libruby-with-ext.time
REVISION_H = ./.revision.time
@ -271,7 +272,8 @@ EXTS_NOTE = -f $(EXTS_MK) $(mflags) RUBY="$(MINIRUBY)" top_srcdir="$(srcdir)" no
exts: build-ext
EXTS_MK = exts.mk
$(EXTS_MK): ext/configure-ext.mk $(TIMESTAMPDIR)/$(arch)/.time $(srcdir)/template/exts.mk.tmpl
$(EXTS_MK): ext/configure-ext.mk $(srcdir)/template/exts.mk.tmpl \
$(TIMESTAMPDIR)/$(arch)/.time $(TIMESTAMPDIR)/.RUBYCOMMONDIR.time
$(Q)$(MAKE) -f ext/configure-ext.mk $(mflags) V=$(V) EXTSTATIC=$(EXTSTATIC) \
gnumake=$(gnumake) MINIRUBY="$(MINIRUBY)" \
EXTLDFLAGS="$(EXTLDFLAGS)" srcdir="$(srcdir)"
@ -900,6 +902,10 @@ $(TIMESTAMPDIR)/$(arch)/.time:
$(Q)$(MAKEDIRS) $(@D) $(EXTOUT)/$(arch)
@$(NULLCMD) > $@
$(TIMESTAMPDIR)/.RUBYCOMMONDIR.time:
$(Q)$(MAKEDIRS) $(@D) $(RUBYCOMMONDIR)
@$(NULLCMD) > $@
###
CCAN_DIR = {$(VPATH)}ccan