diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-11-14 18:59:06 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 18:59:06 +0900 |
commit | 3fae53a343ebd7686bb20d8f4b6855f4d11019cd (patch) | |
tree | 688b00a00b650efc06385904e0c7759c78b4ad84 /common.mk | |
parent | a8537aa6a5ec6da5261e727943ba267bc422e594 (diff) | |
download | ruby-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.mk | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 $@ |