From 265a96b005748beb1dea9a3de67ae35f96374c97 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 1 Nov 2022 13:32:54 +0900 Subject: [PATCH] Manage the timestamp for revision.h --- common.mk | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/common.mk b/common.mk index 2bf44b530f..1a20e005d2 100644 --- a/common.mk +++ b/common.mk @@ -1228,13 +1228,8 @@ $(BUILTIN_RB_INCS): $(top_srcdir)/tool/mk_builtin_loader.rb $(srcdir)/revision.h: $(REVISION_H) -revision.$(HAVE_BASERUBY:no=tmp):: - $(Q) $(NULLCMD) > $@ -revision.$(HAVE_BASERUBY:yes=tmp):: $(srcdir)/version.h $(tooldir)/file2lastrev.rb $(REVISION_FORCE) - $(Q) $(BASERUBY) $(tooldir)/file2lastrev.rb -q --revision.h --srcdir="$(srcdir)" > $@ - -$(REVISION_H): revision.tmp - -$(Q)$(IFCHANGE) "--timestamp=$@" "$(srcdir)/revision.h" revision.tmp +$(REVISION_H): + $(Q) $(BASERUBY) $(tooldir)/file2lastrev.rb -q --revision.h --srcdir="$(srcdir)" --output=revision.h --timestamp=$@ $(srcdir)/ext/ripper/ripper.c: $(srcdir)/ext/ripper/tools/preproc.rb $(srcdir)/parse.y $(srcdir)/defs/id.def $(srcdir)/ext/ripper/depend $(ECHO) generating $@