From fa6e14c45d85e2c2b21c69e04d87135dc5423a09 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 2 Jul 2023 13:00:44 +0900 Subject: [PATCH] [DOC] Stop downloading Unicode data only for unicode_properties.rdoc --- common.mk | 8 ++++++-- 1 file 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 \