diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-29 07:07:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-29 07:07:40 +0000 |
commit | 1a6ae0a99fbb8e95dacbbcbc76ee360df04c7566 (patch) | |
tree | 61a9373387fdc011f21d35d8d7e1d05e4e9219ae | |
parent | 16d6a91a5d54ed8bb13a6ae02edabb00a5e98142 (diff) | |
download | ruby-1a6ae0a99fbb8e95dacbbcbc76ee360df04c7566.tar.gz |
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
-rw-r--r-- | common.mk | 2 | ||||
-rw-r--r-- | defs/gmake.mk | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1083,7 +1083,7 @@ preludes: {$(VPATH)}miniprelude.c preludes: {$(srcdir)}golf_prelude.c $(srcdir)/revision.h: - @exit > $@ + $(Q)$(gnumake:yes=#) exit > $@ $(REVISION_H): $(srcdir)/version.h $(srcdir)/tool/file2lastrev.rb $(REVISION_FORCE) -$(Q) $(BASERUBY) $(srcdir)/tool/file2lastrev.rb -q --revision.h "$(srcdir)" > revision.tmp diff --git a/defs/gmake.mk b/defs/gmake.mk index a4acb679f9..49934c5f01 100644 --- a/defs/gmake.mk +++ b/defs/gmake.mk @@ -185,6 +185,10 @@ $(MJIT_MIN_HEADER): $(mjit_min_headers) $(PREP) 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 # # $ make rdoc:Integer#+ |