aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common.mk10
-rw-r--r--template/Makefile.in1
-rw-r--r--win32/Makefile.sub1
3 files changed, 7 insertions, 5 deletions
diff --git a/common.mk b/common.mk
index 82ff19b3aa..27340bd4cc 100644
--- a/common.mk
+++ b/common.mk
@@ -793,7 +793,7 @@ $(arch:noarch=ignore)-fake.rb: $(srcdir)/template/fake.rb.in $(tooldir)/generic_
i=- srcdir="$(srcdir)" BASERUBY="$(BASERUBY)"
noarch-fake.rb: # prerequisite of yes-fake
- touch $@
+ $(Q) exit > $@
btest: $(TEST_RUNNABLE)-btest
no-btest: PHONY
@@ -1221,7 +1221,7 @@ $(srcdir)/revision.h$(no_baseruby:no=~disabled~): $(REVISION_H)
$(REVISION_H)$(no_baseruby:no=~disabled~):
$(Q) $(BASERUBY) $(tooldir)/file2lastrev.rb -q --revision.h --srcdir="$(srcdir)" --output=revision.h --timestamp=$@
$(REVISION_H)$(yes_baseruby:yes=~disabled~):
- $(Q) touch $@
+ $(Q) exit > $@
$(srcdir)/ext/ripper/ripper.c: $(srcdir)/ext/ripper/tools/preproc.rb $(srcdir)/parse.y $(srcdir)/defs/id.def $(srcdir)/ext/ripper/depend
$(ECHO) generating $@
@@ -1357,7 +1357,7 @@ after-update:: extract-gems
update-src::
$(Q) $(RM) $(REVISION_H) revision.h "$(srcdir)/$(REVISION_H)" "$(srcdir)/revision.h"
- $(Q) touch "$(srcdir)/revision.h"
+ $(Q) exit > "$(srcdir)/revision.h"
update-remote:: update-src update-download
update-download:: $(ALWAYS_UPDATE_UNICODE:yes=update-unicode)
@@ -1614,7 +1614,7 @@ $(UNICODE_SRC_DATA_DIR)/$(ALWAYS_UPDATE_UNICODE:yes=.unicode-tables.time): \
touch-unicode-files:
$(MAKEDIRS) $(UNICODE_SRC_DATA_DIR)
- touch $(UNICODE_SRC_DATA_DIR)/.unicode-tables.time $(UNICODE_DATA_HEADERS)
+ $(Q) $(TOUCH) $(UNICODE_SRC_DATA_DIR)/.unicode-tables.time $(UNICODE_DATA_HEADERS)
UNICODE_TABLES_DATA_FILES = \
$(UNICODE_SRC_DATA_DIR)/UnicodeData.txt \
@@ -1626,7 +1626,7 @@ UNICODE_TABLES_DEPENDENTS = $(UNICODE_TABLES_DEPENDENTS_1:noneyes=force)
UNICODE_TABLES_TIMESTAMP = yes
$(UNICODE_SRC_DATA_DIR)/.unicode-tables.$(UNICODE_TABLES_DEPENDENTS:none=time):
$(Q) $(MAKEDIRS) $(@D)
- touch $(@) || $(NULLCMD)
+ $(Q) exit > $(@) || $(NULLCMD)
$(UNICODE_SRC_DATA_DIR)/.unicode-tables.$(UNICODE_TABLES_DEPENDENTS:force=time): \
$(tooldir)/generic_erb.rb \
$(srcdir)/template/unicode_norm_gen.tmpl \
diff --git a/template/Makefile.in b/template/Makefile.in
index 8322ad7178..145631386d 100644
--- a/template/Makefile.in
+++ b/template/Makefile.in
@@ -228,6 +228,7 @@ RMDIR = @RMDIR@
RMDIRS = @RMDIRS@
RMALL = @RMALL@
LN_S = @LN_S@
+TOUCH = touch
NM = @NM@
AR = @AR@
ARFLAGS = @ARFLAGS@$(empty)
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 814681e8d8..43349bf5f3 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -113,6 +113,7 @@ RMDIR = $(COMSPEC) /C $(srcdir:/=\)\win32\rmdirs.bat
RMDIRS = $(COMSPEC) /C $(srcdir:/=\)\win32\rmdirs.bat
RMALL = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat -f -r
MAKEDIRS = $(COMSPEC) /E:ON /C $(srcdir:/=\)\win32\makedirs.bat
+TOUCH = $(BASERUBY) -run -e touch --
CP = copy > nul
MV = move > nul
RM1 = del /f /q