mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Skip updating revision.h when the revision is unchanged
note: GNU make only.
This commit is contained in:
parent
a9d4f2d03c
commit
97a5af62a3
1 changed files with 4 additions and 0 deletions
|
@ -291,9 +291,13 @@ $(UNICODE_SRC_DATA_DIR)/.unicode-tables.time: \
|
|||
$(UNICODE_FILES) $(UNICODE_PROPERTY_FILES)
|
||||
endif
|
||||
|
||||
REVISION_IN_HEADER := $(shell sed -n 's/^\#define RUBY_FULL_REVISION "\(.*\)"/\1/p' $(srcdir)/revision.h)
|
||||
REVISION_LATEST := $(shell git -C $(srcdir) log -1 --format=%H)
|
||||
ifneq ($(REVISION_IN_HEADER),$(REVISION_LATEST))
|
||||
# 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)
|
||||
endif
|
||||
|
||||
# Query on the generated rdoc
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue