ICU-20871 Fixed: no rule was defined to create the $(OUTDIR) directory if it didn't exist.

This would cause failures during cross compilation cases such as:

make[6]: Leaving directory '/spksrc/spk/bazarr/work-qoriq-6.1/icu/source/data'
make[5]: *** No rule to make target 'out', needed by 'out/icudt64b.dat'.  Stop.
This commit is contained in:
Smaarn 2019-10-16 22:52:05 +02:00 committed by Shane F. Carr
parent 5aae52d3ef
commit 996da8faac

View file

@ -150,6 +150,10 @@ ifneq ($(ICUDATA_ARCHIVE),)
ICUDATA_SOURCE_ARCHIVE = $(OUTDIR)/$(ICUDATA_PLATFORM_NAME).dat
$(ICUDATA_SOURCE_ARCHIVE): $(ICUDATA_ARCHIVE) $(OUTDIR)
$(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(ICUDATA_ARCHIVE) $(ICUDATA_SOURCE_ARCHIVE)
$(OUTDIR):
mkdir -p $(OUTDIR)
endif
else
ifneq ($(ENABLE_STATIC),YES)