summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-02 13:00:44 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-02 13:00:44 +0900
commitfa6e14c45d85e2c2b21c69e04d87135dc5423a09 (patch)
treeb4f4e6766cf52ef534eb86e991929dac0cd89f4e /common.mk
parent765a19ab593b481f262a07be5d88484f820da3c2 (diff)
[DOC] Stop downloading Unicode data only for unicode_properties.rdoc
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8011
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index 4f153059f4..53077a075e 100644
--- a/common.mk
+++ b/common.mk
@@ -1731,10 +1731,14 @@ $(UNICODE_HDR_DIR)/name2ctype.h:
$(MV) $@.new $@
srcs-doc: $(srcdir)/doc/regexp/unicode_properties.rdoc
-$(srcdir)/doc/regexp/unicode_properties.rdoc: $(UNICODE_HDR_DIR)/name2ctype.h $(UNICODE_PROPERTY_FILES)
+$(srcdir)/doc/regexp/$(ALWAYS_UPDATE_UNICODE:yes=unicode_properties.rdoc): \
+ $(UNICODE_HDR_DIR)/name2ctype.h $(UNICODE_PROPERTY_FILES)
+
+$(srcdir)/doc/regexp/unicode_properties.rdoc:
$(Q) $(BOOTSTRAPRUBY) $(tooldir)/generic_erb.rb -c -o $@ \
$(srcdir)/template/unicode_properties.rdoc.tmpl \
- $(UNICODE_SRC_DATA_DIR) $(UNICODE_HDR_DIR)/name2ctype.h
+ $(UNICODE_SRC_DATA_DIR) $(UNICODE_HDR_DIR)/name2ctype.h || \
+ $(TOUCH) $@
# the next non-comment line was:
# $(UNICODE_HDR_DIR)/casefold.h: $(tooldir)/enc-case-folding.rb \