# derive a string like 'icudt44l' from a local file like 'external/icu4c/stubdata/icudt44l-all.dat' stubdata_path:= $(call my-dir) root_dat_path := $(wildcard $(stubdata_path)/*-all.dat) root := $(patsubst $(stubdata_path)/%,%,$(patsubst %-all.dat,%,$(root_dat_path)))