-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split locale generation snippet into a separate file
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.
- Loading branch information
Leonhard Holz
authored and
Siddhesh Poyarekar
committed
May 13, 2015
1 parent
0f4840b
commit 9f53d7a
Showing
4 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters