summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.in1
-rw-r--r--common.mk8
-rw-r--r--win32/Makefile.sub2
3 files changed, 6 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index c738d9925a..80c5e47641 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -406,7 +406,6 @@ $(srcdir)/enc/jis/props.h: enc/jis/props.kwd
.s.@OBJEXT@:
@$(ECHO) assembling $<
- $(Q) $(MAKEDIRS) $(@D)
$(Q) $(CC) $(ASFLAGS) -o $@ -c $<
.c.S:
diff --git a/common.mk b/common.mk
index 7a00667b32..1cf0def775 100644
--- a/common.mk
+++ b/common.mk
@@ -852,7 +852,7 @@ exe/$(PROGRAM): ruby-runner.c ruby-runner.h exe/.time miniruby$(EXEEXT) {$(VPATH
$(@F) $(@D)
exe/.time:
- $(Q) $(MAKEDIRS) exe $(@D)
+ $(Q) $(MAKEDIRS) $(@D)
@exit > $@
$(BUILTIN_ENCOBJS) $(BUILTIN_TRANSOBJS): $(ENC_TRANS_D)
@@ -895,7 +895,11 @@ strstr.$(OBJEXT): {$(VPATH)}strstr.c
nt.$(OBJEXT): {$(VPATH)}nt.c
ia64.$(OBJEXT): {$(VPATH)}ia64.s
$(CC) $(CFLAGS) -c $<
-coroutine/amd64/Context.$(OBJECT): {$(VPATH)}coroutine/amd64/Context.s
+coroutine/amd64/Context.$(OBJEXT): {$(VPATH)}coroutine/amd64/Context.s
+coroutine/amd64/Context.$(OBJEXT): coroutine/amd64/.time
+coroutine/amd64/.time:
+ $(Q) $(MAKEDIRS) $(@D)
+ @exit > $@
###
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 1f045934ae..0892d8f753 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -1226,11 +1226,9 @@ $(ruby_pc): $(RBCONFIG)
{$(srcdir)/coroutine/Win32}.asm.obj:
$(ECHO) assembling $(<:\=/)
- @if not exist $(@D:/=\) md $(@D:/=\)
$(Q) $(AS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c $(<:\=/)
{$(srcdir)/coroutine/Win64}.asm.obj:
$(ECHO) assembling $(<:\=/)
- @if not exist $(@D:/=\) md $(@D:/=\)
$(Q) $(AS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c $(<:\=/)
{$(srcdir)/enc/trans}.c.obj: