diff options
Diffstat (limited to 'defs/gmake.mk')
-rw-r--r-- | defs/gmake.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/defs/gmake.mk b/defs/gmake.mk index eb9e35a446..496c5fe1fa 100644 --- a/defs/gmake.mk +++ b/defs/gmake.mk @@ -185,8 +185,13 @@ $(MJIT_MIN_HEADER): $(mjit_min_headers) $(PREP) endif -ifneq ($(wildcard $(UNICODE_FILES) $(UNICODE_PROPERTY_FILES)),) +ifeq ($(if $(wildcard $(UNICODE_FILES) $(UNICODE_PROPERTY_FILES)),,\ + $(wildcard $(srcdir)/lib/unicode_normalize/tables.rb)),) +# Needs the dependency when any Unicode data file exists, or +# normalization tables script doesn't. Otherwise, when the target +# only exists, use it as-is. .PHONY: $(UNICODE_SRC_DATA_DIR)/.unicode-tables.time +UNICODE_TABLES_TIMESTAMP = $(UNICODE_SRC_DATA_DIR)/.unicode-tables.time: \ $(UNICODE_FILES) $(UNICODE_PROPERTY_FILES) endif |