mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 10:22:41 +08:00
9f53d7ad57
This patch prepares for the strcoll benchmark by moving the makefile code for generating the locale files into a standalone snippet that can be used elsewhere.
21 lines
912 B
Makefile
21 lines
912 B
Makefile
# defines target $(gen-locales) that generates the locales given in $(LOCALES)
|
|
|
|
LOCALE_SRCS := $(shell echo "$(LOCALES)"|sed 's/\([^ .]*\)[^ ]*/\1/g')
|
|
CHARMAPS := $(shell echo "$(LOCALES)" | \
|
|
sed -e 's/[^ .]*[.]\([^ ]*\)/\1/g' -e s/SJIS/SHIFT_JIS/g)
|
|
CTYPE_FILES = $(addsuffix /LC_CTYPE,$(LOCALES))
|
|
gen-locales := $(addprefix $(common-objpfx)localedata/,$(CTYPE_FILES))
|
|
|
|
# Dependency for the locale files. We actually make it depend only on
|
|
# one of the files.
|
|
$(addprefix $(common-objpfx)localedata/,$(CTYPE_FILES)): %: \
|
|
../localedata/gen-locale.sh \
|
|
$(common-objpfx)locale/localedef \
|
|
../localedata/Makefile \
|
|
$(addprefix ../localedata/charmaps/,$(CHARMAPS)) \
|
|
$(addprefix ../localedata/locales/,$(LOCALE_SRCS))
|
|
@$(SHELL) ../localedata/gen-locale.sh $(common-objpfx) \
|
|
'$(built-program-cmd-before-env)' '$(run-program-env)' \
|
|
'$(built-program-cmd-after-env)' $@; \
|
|
$(evaluate-test)
|