summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-11-14 18:59:06 +0900
committerGitHub <noreply@github.com>2022-11-14 18:59:06 +0900
commit3fae53a343ebd7686bb20d8f4b6855f4d11019cd (patch)
tree688b00a00b650efc06385904e0c7759c78b4ad84 /common.mk
parenta8537aa6a5ec6da5261e727943ba267bc422e594 (diff)
downloadruby-3fae53a343ebd7686bb20d8f4b6855f4d11019cd.tar.gz
[Bug #19127] Fix revision.h dependency when no baseruby
Disconnect the dependency of revision.h on the timestamp file if no baseruby is available
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index a9a5d635d5..03e9c5f537 100644
--- a/common.mk
+++ b/common.mk
@@ -1226,10 +1226,12 @@ builtin_binary.inc: $(PREP) $(BUILTIN_RB_SRCS) $(srcdir)/template/builtin_binary
$(BUILTIN_RB_INCS): $(top_srcdir)/tool/mk_builtin_loader.rb
-$(srcdir)/revision.h: $(REVISION_H)
+$(srcdir)/revision.h$(no_baseruby:no=~disabled~): $(REVISION_H)
-$(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 $@
$(srcdir)/ext/ripper/ripper.c: $(srcdir)/ext/ripper/tools/preproc.rb $(srcdir)/parse.y $(srcdir)/defs/id.def $(srcdir)/ext/ripper/depend
$(ECHO) generating $@