1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Always try to update revision.h with GNU make

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-11-29 07:07:40 +00:00
parent 16d6a91a5d
commit 1a6ae0a99f
2 changed files with 5 additions and 1 deletions

View file

@ -1083,7 +1083,7 @@ preludes: {$(VPATH)}miniprelude.c
preludes: {$(srcdir)}golf_prelude.c preludes: {$(srcdir)}golf_prelude.c
$(srcdir)/revision.h: $(srcdir)/revision.h:
@exit > $@ $(Q)$(gnumake:yes=#) exit > $@
$(REVISION_H): $(srcdir)/version.h $(srcdir)/tool/file2lastrev.rb $(REVISION_FORCE) $(REVISION_H): $(srcdir)/version.h $(srcdir)/tool/file2lastrev.rb $(REVISION_FORCE)
-$(Q) $(BASERUBY) $(srcdir)/tool/file2lastrev.rb -q --revision.h "$(srcdir)" > revision.tmp -$(Q) $(BASERUBY) $(srcdir)/tool/file2lastrev.rb -q --revision.h "$(srcdir)" > revision.tmp

View file

@ -185,6 +185,10 @@ $(MJIT_MIN_HEADER): $(mjit_min_headers) $(PREP)
endif endif
# GNU make treat the target as unmodified when its dependents get
# updated but it is not updated, while others may not.
$(srcdir)/revision.h: $(REVISION_H)
# Query on the generated rdoc # Query on the generated rdoc
# #
# $ make rdoc:Integer#+ # $ make rdoc:Integer#+