summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-06 16:47:42 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-10 13:58:20 +0900
commit7a976c106030f37d6ab72b1abaef10e575bb8809 (patch)
treee251ece4930a6210a438b3d6dbf37e14abc1dc90 /template
parent5404e2fd31736af3a7477f3ec67d3f07276485d6 (diff)
downloadruby-7a976c106030f37d6ab72b1abaef10e575bb8809.tar.gz
[Bug #19181] Separate the rule for unicode_normalize/tables.rb timestamp
It should depends on only existing data files (except for the tools), unless `ALWAYS_UPDATE_UNICODE=yes`.
Diffstat (limited to 'template')
-rw-r--r--template/GNUmakefile.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/template/GNUmakefile.in b/template/GNUmakefile.in
index 0c8ac5f0e4..4db4467905 100644
--- a/template/GNUmakefile.in
+++ b/template/GNUmakefile.in
@@ -12,10 +12,21 @@ ifeq ($(HAVE_BASERUBY),yes)
override REVISION_FORCE := PHONY
endif
+override order_only := |
+
ifneq ($(filter notintermediate,$(.FEATURES)),)
DOT_WAIT = .WAIT
endif
+# Needs the dependency when any Unicode tables data files exist.
+override UNICODE_TABLES_DEPENDENTS = \
+ $(if $(or \
+ $(filter yes,$(ALWAYS_UPDATE_UNICODE)), \
+ $(wildcard \
+ $(if $(filter .,$(UNICODE_FILES) $(UNICODE_PROPERTY_FILES)),,\
+ $(UNICODE_TABLES_DATA_FILES)))),\
+ force,none)
+
include $(srcdir)/defs/universal.mk
-include uncommon.mk
include $(srcdir)/defs/gmake.mk