Blame localedata/Makefile

Packit Service 82fcde
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
Packit Service 82fcde
# This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
# The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
# modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
# License as published by the Free Software Foundation; either
Packit Service 82fcde
# version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
# The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
# Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
# You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
# License along with the GNU C Library; if not, see
Packit Service 82fcde
# <http://www.gnu.org/licenses/>.
Packit Service 82fcde
Packit Service 82fcde
# Makefile for installing locale data source files.
Packit Service 82fcde
Packit Service 82fcde
subdir := localedata
Packit Service 82fcde
Packit Service 82fcde
include ../Makeconfig
Packit Service 82fcde
Packit Service 82fcde
# List with all available character set descriptions.
Packit Service 82fcde
charmaps := $(wildcard charmaps/[A-I]*) $(wildcard charmaps/[J-Z]*)
Packit Service 82fcde
Packit Service 82fcde
# List with all available character set descriptions.
Packit Service 82fcde
locales := $(wildcard locales/*)
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
subdir-dirs = tests-mbwc
Packit Service 82fcde
vpath %.c tests-mbwc
Packit Service 82fcde
vpath %.h tests-mbwc
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
test-srcs := collate-test xfrm-test tst-fmon tst-rpmatch tst-trans \
Packit Service 82fcde
	     tst-ctype tst-langinfo-newlocale tst-langinfo-setlocale \
Packit Service 82fcde
	     tst-langinfo-newlocale-static tst-langinfo-setlocale-static \
Packit Service 82fcde
	     tst-numeric
Packit Service 82fcde
# List of test input files (list sorted alphabetically):
Packit Service 82fcde
test-input := \
Packit Service 82fcde
	am_ET.UTF-8 \
Packit Service 82fcde
	az_AZ.UTF-8 \
Packit Service 82fcde
	be_BY.UTF-8 \
Packit Service 82fcde
	ber_DZ.UTF-8 \
Packit Service 82fcde
	ber_MA.UTF-8 \
Packit Service 82fcde
	bg_BG.UTF-8 \
Packit Service 82fcde
	br_FR.UTF-8 \
Packit Service 82fcde
	bs_BA.UTF-8 \
Packit Service 82fcde
	cmn_TW.UTF-8 \
Packit Service 82fcde
	crh_UA.UTF-8 \
Packit Service 82fcde
	cs_CZ.UTF-8 \
Packit Service 82fcde
	csb_PL.UTF-8 \
Packit Service 82fcde
	cv_RU.UTF-8 \
Packit Service 82fcde
	cy_GB.UTF-8 \
Packit Service 82fcde
	da_DK.ISO-8859-1 \
Packit Service 82fcde
	de_DE.ISO-8859-1 \
Packit Service 82fcde
	dsb_DE.UTF-8 \
Packit Service 82fcde
	dz_BT.UTF-8 \
Packit Service 82fcde
	en_US.ISO-8859-1 \
Packit Service 82fcde
	en_US.UTF-8 \
Packit Service 82fcde
	eo.UTF-8 \
Packit Service 82fcde
	es_ES.UTF-8 \
Packit Service 82fcde
	et_EE.UTF-8 \
Packit Service 82fcde
	fa_IR.UTF-8 \
Packit Service 82fcde
	fi_FI.UTF-8 \
Packit Service 82fcde
	fil_PH.UTF-8 \
Packit Service 82fcde
	fr_CA.UTF-8 \
Packit Service 82fcde
	fr_FR.UTF-8 \
Packit Service 82fcde
	fur_IT.UTF-8 \
Packit Service 82fcde
	gez_ER.UTF-8@abegede \
Packit Service 82fcde
	ha_NG.UTF-8 \
Packit Service 82fcde
	hr_HR.ISO-8859-2 \
Packit Service 82fcde
	hr_HR.UTF-8 \
Packit Service 82fcde
	hsb_DE.UTF-8 \
Packit Service 82fcde
	hu_HU.UTF-8 \
Packit Service 82fcde
	ig_NG.UTF-8 \
Packit Service 82fcde
	ik_CA.UTF-8 \
Packit Service 82fcde
	is_IS.UTF-8 \
Packit Service 82fcde
	kk_KZ.UTF-8 \
Packit Service 82fcde
	ku_TR.UTF-8 \
Packit Service 82fcde
	ky_KG.UTF-8 \
Packit Service 82fcde
	ln_CD.UTF-8 \
Packit Service 82fcde
	lt_LT.UTF-8 \
Packit Service 82fcde
	lv_LV.UTF-8 \
Packit Service 82fcde
	mi_NZ.UTF-8 \
Packit Service 82fcde
	ml_IN.UTF-8 \
Packit Service 82fcde
	mn_MN.UTF-8 \
Packit Service 82fcde
	mr_IN.UTF-8 \
Packit Service 82fcde
	mt_MT.UTF-8 \
Packit Service 82fcde
	nan_TW.UTF-8@latin \
Packit Service 82fcde
	nb_NO.UTF-8 \
Packit Service 82fcde
	om_KE.UTF-8 \
Packit Service 82fcde
	os_RU.UTF-8 \
Packit Service 82fcde
	pl_PL.UTF-8 \
Packit Service 82fcde
	ps_AF.UTF-8 \
Packit Service 82fcde
	ro_RO.UTF-8 \
Packit Service 82fcde
	ru_RU.UTF-8 \
Packit Service 82fcde
	sah_RU.UTF-8 \
Packit Service 82fcde
	sc_IT.UTF-8 \
Packit Service 82fcde
	se_NO.UTF-8 \
Packit Service 82fcde
	si_LK.UTF-8 \
Packit Service 82fcde
	sq_AL.UTF-8 \
Packit Service 82fcde
	sr_RS.UTF-8 \
Packit Service 82fcde
	sv_SE.ISO-8859-1 \
Packit Service 82fcde
	sv_SE.UTF-8 \
Packit Service 82fcde
	szl_PL.UTF-8 \
Packit Service 82fcde
	tg_TJ.UTF-8 \
Packit Service 82fcde
	tk_TM.UTF-8 \
Packit Service 82fcde
	tr_TR.UTF-8 \
Packit Service 82fcde
	tt_RU.UTF-8 \
Packit Service 82fcde
	tt_RU.UTF-8@iqtelif \
Packit Service 82fcde
	ug_CN.UTF-8 \
Packit Service 82fcde
	uk_UA.UTF-8 \
Packit Service 82fcde
	uz_UZ.UTF-8 \
Packit Service 82fcde
	vi_VN.UTF-8 \
Packit Service 82fcde
	yi_US.UTF-8 \
Packit Service 82fcde
	yo_NG.UTF-8 \
Packit Service 82fcde
	zh_CN.UTF-8 \
Packit Service 82fcde
	$(NULL)
Packit Service 82fcde
Packit Service 82fcde
test-input-data = $(addsuffix .in, $(test-input))
Packit Service 82fcde
test-output := $(foreach s, .out .xout, \
Packit Service 82fcde
			 $(addsuffix $s, $(basename $(test-input))))
Packit Service 82fcde
ld-test-names := test1 test2 test3 test4 test5 test6 test7
Packit Service 82fcde
ld-test-srcs := $(addprefix tests/,$(addsuffix .cm,$(ld-test-names)) \
Packit Service 82fcde
				   $(addsuffix .def,$(ld-test-names)) \
Packit Service 82fcde
				   $(addsuffix .ds,test5 test6) \
Packit Service 82fcde
				   test6.c trans.def)
Packit Service 82fcde
Packit Service 82fcde
fmon-tests = n01y12 n02n40 n10y31 n11y41 n12y11 n20n32 n30y20 n41n00 \
Packit Service 82fcde
	     y01y10 y02n22 y22n42 y30y21 y32n31 y40y00 y42n21
Packit Service 82fcde
Packit Service 82fcde
generated += $(test-input) $(test-output) sort-test.out tst-locale.out \
Packit Service 82fcde
	     tst-leaks.mtrace mtrace-tst-leaks.out
Packit Service 82fcde
generated-dirs += $(ld-test-names) tt_TT de_DE.437			\
Packit Service 82fcde
		  $(addprefix tstfmon_,$(fmon-tests))			\
Packit Service 82fcde
Packit Service 82fcde
ifeq ($(run-built-tests),yes)
Packit Service 82fcde
locale_test_suite := tst_iswalnum tst_iswalpha tst_iswcntrl            \
Packit Service 82fcde
		     tst_iswctype tst_iswdigit tst_iswgraph            \
Packit Service 82fcde
		     tst_iswlower tst_iswprint tst_iswpunct            \
Packit Service 82fcde
		     tst_iswspace tst_iswupper tst_iswxdigit tst_mblen \
Packit Service 82fcde
		     tst_mbrlen tst_mbrtowc tst_mbsrtowcs tst_mbstowcs \
Packit Service 82fcde
		     tst_mbtowc tst_strcoll tst_strfmon tst_strxfrm    \
Packit Service 82fcde
		     tst_swscanf tst_towctrans tst_towlower            \
Packit Service 82fcde
		     tst_towupper tst_wcrtomb tst_wcscat tst_wcschr    \
Packit Service 82fcde
		     tst_wcscmp tst_wcscoll tst_wcscpy tst_wcscspn     \
Packit Service 82fcde
		     tst_wcslen tst_wcsncat tst_wcsncmp tst_wcsncpy    \
Packit Service 82fcde
		     tst_wcspbrk tst_wcsrtombs tst_wcsspn tst_wcsstr   \
Packit Service 82fcde
		     tst_wcstod tst_wcstok tst_wcstombs tst_wcswidth   \
Packit Service 82fcde
		     tst_wcsxfrm tst_wctob tst_wctomb tst_wctrans      \
Packit Service 82fcde
		     tst_wctype tst_wcwidth
Packit Service 82fcde
Packit Service 82fcde
tests = $(locale_test_suite) tst-digits tst-setlocale bug-iconv-trans \
Packit Service 82fcde
	tst-leaks tst-mbswcs1 tst-mbswcs2 tst-mbswcs3 tst-mbswcs4 tst-mbswcs5 \
Packit Service 82fcde
	tst-mbswcs6 tst-xlocale1 tst-xlocale2 bug-usesetlocale \
Packit Service 82fcde
	tst-strfmon1 tst-sscanf bug-setlocale1 tst-setlocale2 tst-setlocale3 \
Packit Service 82fcde
	tst-wctype
Packit Service 82fcde
tests-static = bug-setlocale1-static
Packit Service 82fcde
tests += $(tests-static)
Packit Service 82fcde
ifeq (yes,$(build-shared))
Packit Service 82fcde
ifneq (no,$(PERL))
Packit Service 82fcde
tests-special += $(objpfx)mtrace-tst-leaks.out
Packit Service 82fcde
endif
Packit Service 82fcde
endif
Packit Service 82fcde
endif
Packit Service 82fcde
Packit Service 82fcde
# Files to install.
Packit Service 82fcde
install-others := $(addprefix $(inst_i18ndir)/, \
Packit Service 82fcde
			      $(addsuffix .gz, $(charmaps)) \
Packit Service 82fcde
			      $(locales))
Packit Service 82fcde
Packit Service 82fcde
tests: $(objdir)/iconvdata/gconv-modules
Packit Service 82fcde
Packit Service 82fcde
tests-static += tst-langinfo-newlocale-static tst-langinfo-setlocale-static
Packit Service 82fcde
Packit Service 82fcde
ifeq ($(run-built-tests),yes)
Packit Service 82fcde
tests-special += $(objpfx)sort-test.out $(objpfx)tst-fmon.out \
Packit Service 82fcde
		 $(objpfx)tst-locale.out $(objpfx)tst-rpmatch.out \
Packit Service 82fcde
		 $(objpfx)tst-trans.out $(objpfx)tst-ctype.out \
Packit Service 82fcde
		 $(objpfx)tst-langinfo-newlocale.out \
Packit Service 82fcde
		 $(objpfx)tst-langinfo-setlocale.out \
Packit Service 82fcde
		 $(objpfx)tst-langinfo-newlocale-static.out \
Packit Service 82fcde
		 $(objpfx)tst-langinfo-setlocale-static.out \
Packit Service 82fcde
		 $(objpfx)tst-numeric.out
Packit Service 82fcde
# We have to generate locales (list sorted alphabetically)
Packit Service 82fcde
LOCALES := \
Packit Service 82fcde
	am_ET.UTF-8 \
Packit Service 82fcde
	az_AZ.UTF-8 \
Packit Service 82fcde
	be_BY.UTF-8 \
Packit Service 82fcde
	ber_DZ.UTF-8 \
Packit Service 82fcde
	ber_MA.UTF-8 \
Packit Service 82fcde
	bg_BG.UTF-8 \
Packit Service 82fcde
	br_FR.UTF-8 \
Packit Service 82fcde
	bs_BA.UTF-8 \
Packit Service 82fcde
	cmn_TW.UTF-8 \
Packit Service 82fcde
	crh_UA.UTF-8 \
Packit Service 82fcde
	cs_CZ.UTF-8 \
Packit Service 82fcde
	csb_PL.UTF-8 \
Packit Service 82fcde
	cv_RU.UTF-8 \
Packit Service 82fcde
	cy_GB.UTF-8 \
Packit Service 82fcde
	da_DK.ISO-8859-1 \
Packit Service 82fcde
	de_DE.ISO-8859-1 \
Packit Service 82fcde
	de_DE.UTF-8 \
Packit Service 82fcde
	dsb_DE.UTF-8 \
Packit Service 82fcde
	dz_BT.UTF-8 \
Packit Service 82fcde
	en_GB.UTF-8 \
Packit Service 82fcde
	en_US.ANSI_X3.4-1968 \
Packit Service 82fcde
	en_US.ISO-8859-1\
Packit Service 82fcde
	en_US.UTF-8 \
Packit Service 82fcde
	eo.UTF-8 \
Packit Service 82fcde
	es_ES.UTF-8 \
Packit Service 82fcde
	et_EE.UTF-8 \
Packit Service 82fcde
	fa_IR.UTF-8 \
Packit Service 82fcde
	fi_FI.UTF-8 \
Packit Service 82fcde
	fil_PH.UTF-8 \
Packit Service 82fcde
	fr_CA.UTF-8 \
Packit Service 82fcde
	fr_FR.ISO-8859-1 \
Packit Service 82fcde
	fr_FR.UTF-8 \
Packit Service 82fcde
	fur_IT.UTF-8 \
Packit Service 82fcde
	gez_ER.UTF-8@abegede \
Packit Service 82fcde
	ha_NG.UTF-8 \
Packit Service 82fcde
	hr_HR.ISO-8859-2 \
Packit Service 82fcde
	hr_HR.UTF-8 \
Packit Service 82fcde
	hsb_DE.UTF-8 \
Packit Service 82fcde
	hu_HU.UTF-8 \
Packit Service 82fcde
	ig_NG.UTF-8 \
Packit Service 82fcde
	ik_CA.UTF-8 \
Packit Service 82fcde
	is_IS.UTF-8 \
Packit Service 82fcde
	ja_JP.EUC-JP \
Packit Service 82fcde
	ja_JP.SJIS \
Packit Service 82fcde
	ja_JP.UTF-8 \
Packit Service 82fcde
	kk_KZ.UTF-8 \
Packit Service 82fcde
	ku_TR.UTF-8 \
Packit Service 82fcde
	ky_KG.UTF-8 \
Packit Service 82fcde
	ln_CD.UTF-8 \
Packit Service 82fcde
	lt_LT.UTF-8 \
Packit Service 82fcde
	lv_LV.UTF-8 \
Packit Service 82fcde
	mi_NZ.UTF-8 \
Packit Service 82fcde
	ml_IN.UTF-8 \
Packit Service 82fcde
	mn_MN.UTF-8 \
Packit Service 82fcde
	mr_IN.UTF-8 \
Packit Service 82fcde
	mt_MT.UTF-8 \
Packit Service 82fcde
	nan_TW.UTF-8@latin \
Packit Service 82fcde
	nb_NO.ISO-8859-1 \
Packit Service 82fcde
	nb_NO.UTF-8 \
Packit Service 82fcde
	nn_NO.ISO-8859-1 \
Packit Service 82fcde
	om_KE.UTF-8 \
Packit Service 82fcde
	os_RU.UTF-8 \
Packit Service 82fcde
	pl_PL.UTF-8 \
Packit Service 82fcde
	ps_AF.UTF-8 \
Packit Service 82fcde
	ro_RO.UTF-8 \
Packit Service 82fcde
	ru_RU.UTF-8 \
Packit Service 82fcde
	sah_RU.UTF-8 \
Packit Service 82fcde
	sc_IT.UTF-8 \
Packit Service 82fcde
	se_NO.UTF-8 \
Packit Service 82fcde
	si_LK.UTF-8 \
Packit Service 82fcde
	sq_AL.UTF-8 \
Packit Service 82fcde
	sr_RS.UTF-8 \
Packit Service 82fcde
	sv_SE.ISO-8859-1 \
Packit Service 82fcde
	sv_SE.UTF-8 \
Packit Service 82fcde
	szl_PL.UTF-8 \
Packit Service 82fcde
	tg_TJ.UTF-8 \
Packit Service 82fcde
	tk_TM.UTF-8 \
Packit Service 82fcde
	tr_TR.ISO-8859-9 \
Packit Service 82fcde
	tr_TR.UTF-8 \
Packit Service 82fcde
	tt_RU.UTF-8 \
Packit Service 82fcde
	tt_RU.UTF-8@iqtelif \
Packit Service 82fcde
	ug_CN.UTF-8 \
Packit Service 82fcde
	uk_UA.UTF-8 \
Packit Service 82fcde
	uz_UZ.UTF-8 \
Packit Service 82fcde
	vi_VN.UTF-8 \
Packit Service 82fcde
	yi_US.UTF-8 \
Packit Service 82fcde
	yo_NG.UTF-8 \
Packit Service 82fcde
	zh_CN.UTF-8 \
Packit Service 82fcde
	zh_TW.EUC-TW \
Packit Service 82fcde
	$(NULL)
Packit Service 82fcde
Packit Service 82fcde
include ../gen-locales.mk
Packit Service 82fcde
endif
Packit Service 82fcde
Packit Service 82fcde
include ../Rules
Packit Service 82fcde
Packit Service 82fcde
# Install the charmap files in gzipped format.
Packit Service 82fcde
$(inst_i18ndir)/charmaps/%.gz: charmaps/% $(+force)
Packit Service 82fcde
	$(make-target-directory)
Packit Service 82fcde
	rm -f $(@:.gz=) $@
Packit Service 82fcde
	$(INSTALL_DATA) $< $(@:.gz=)
Packit Service 82fcde
	gzip -9n $(@:.gz=)
Packit Service 82fcde
Packit Service 82fcde
# Install the locale source files in the appropriate directory.
Packit Service 82fcde
$(inst_i18ndir)/locales/%: locales/% $(+force); $(do-install)
Packit Service 82fcde
Packit Service 82fcde
ifeq ($(run-built-tests),yes)
Packit Service 82fcde
generated-dirs += $(LOCALES)
Packit Service 82fcde
Packit Service 82fcde
$(addsuffix .out,$(addprefix $(objpfx),$(tests))): %: \
Packit Service 82fcde
  $(addprefix $(objpfx),$(CTYPE_FILES))
Packit Service 82fcde
Packit Service 82fcde
$(objpfx)sort-test.out: sort-test.sh $(objpfx)collate-test $(objpfx)xfrm-test \
Packit Service 82fcde
		       $(test-input-data) $(addprefix $(objpfx),$(CTYPE_FILES))
Packit Service 82fcde
	$(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
Packit Service 82fcde
	  '$(run-program-env)' '$(test-program-prefix-after-env)' \
Packit Service 82fcde
	  $(test-input) \
Packit Service 82fcde
	  > $@; \
Packit Service 82fcde
	$(evaluate-test)
Packit Service 82fcde
$(objpfx)tst-fmon.out: tst-fmon.sh $(objpfx)tst-fmon tst-fmon.data \
Packit Service 82fcde
		       $(objpfx)sort-test.out \
Packit Service 82fcde
		       $(addprefix $(objpfx),$(CTYPE_FILES))
Packit Service 82fcde
	$(SHELL) $< $(common-objpfx) '$(run-program-prefix-before-env)' \
Packit Service 82fcde
		 '$(run-program-env)' '$(run-program-prefix-after-env)' \
Packit Service 82fcde
		 '$(test-program-prefix)' tst-fmon.data \
Packit Service 82fcde
	  > $@; \
Packit Service 82fcde
	$(evaluate-test)
Packit Service 82fcde
$(objpfx)tst-numeric.out: tst-numeric.sh $(objpfx)tst-numeric tst-numeric.data \
Packit Service 82fcde
		       $(objpfx)sort-test.out \
Packit Service 82fcde
		       $(addprefix $(objpfx),$(CTYPE_FILES))
Packit Service 82fcde
	$(SHELL) $< $(common-objpfx) '$(test-program-prefix)' tst-numeric.data \
Packit Service 82fcde
	  > $@; \
Packit Service 82fcde
	$(evaluate-test)
Packit Service 82fcde
$(objpfx)tst-locale.out: tst-locale.sh $(common-objpfx)locale/localedef \
Packit Service 82fcde
			 $(ld-test-srcs) $(addprefix $(objpfx),$(CTYPE_FILES))
Packit Service 82fcde
	$(SHELL) $< $(common-objpfx) '$(built-program-cmd-before-env)' \
Packit Service 82fcde
		 '$(run-program-env)' '$(built-program-cmd-after-env)' > $@; \
Packit Service 82fcde
	$(evaluate-test)
Packit Service 82fcde
$(objpfx)tst-rpmatch.out: tst-rpmatch.sh $(objpfx)tst-rpmatch \
Packit Service 82fcde
			  $(objpfx)tst-fmon.out \
Packit Service 82fcde
			  $(addprefix $(objpfx),$(CTYPE_FILES))
Packit Service 82fcde
	$(SHELL) $< $(common-objpfx) '$(test-program-cmd)' > $@; \
Packit Service 82fcde
	$(evaluate-test)
Packit Service 82fcde
$(objpfx)tst-trans.out: tst-trans.sh $(objpfx)tst-trans \
Packit Service 82fcde
			$(addprefix $(objpfx),$(CTYPE_FILES))
Packit Service 82fcde
	$(SHELL) $< $(common-objpfx) '$(run-program-prefix-before-env)' \
Packit Service 82fcde
		 '$(run-program-env)' '$(run-program-prefix-after-env)' \
Packit Service 82fcde
		 '$(test-program-prefix-before-env)' \
Packit Service 82fcde
		 '$(test-program-prefix-after-env)' > $@; \
Packit Service 82fcde
	$(evaluate-test)
Packit Service 82fcde
$(objpfx)tst-ctype.out: tst-ctype.sh $(objpfx)tst-ctype \
Packit Service 82fcde
			$(objpfx)sort-test.out \
Packit Service 82fcde
			$(addprefix $(objpfx),$(CTYPE_FILES))
Packit Service 82fcde
	$(SHELL) $< $(common-objpfx) '$(test-program-cmd-before-env)' \
Packit Service 82fcde
		 '$(run-program-env)' '$(test-program-cmd-after-env)' > $@; \
Packit Service 82fcde
	$(evaluate-test)
Packit Service 82fcde
$(objpfx)tst-langinfo-newlocale.out: tst-langinfo.sh \
Packit Service 82fcde
			$(objpfx)tst-langinfo-newlocale \
Packit Service 82fcde
			$(objpfx)sort-test.out \
Packit Service 82fcde
			$(addprefix $(objpfx),$(CTYPE_FILES))
Packit Service 82fcde
	$(SHELL) $< $(common-objpfx) '$(test-program-cmd-before-env)' \
Packit Service 82fcde
		 '$(run-program-env)' '$(test-program-cmd-after-env)' > $@; \
Packit Service 82fcde
	$(evaluate-test)
Packit Service 82fcde
$(objpfx)tst-langinfo-newlocale-static.out: tst-langinfo.sh \
Packit Service 82fcde
			$(objpfx)tst-langinfo-newlocale-static \
Packit Service 82fcde
			$(objpfx)sort-test.out \
Packit Service 82fcde
			$(addprefix $(objpfx),$(CTYPE_FILES))
Packit Service 82fcde
	$(SHELL) $< $(common-objpfx) '$(test-program-cmd-before-env)' \
Packit Service 82fcde
		 '$(run-program-env)' '$(test-program-cmd-after-env)' > $@; \
Packit Service 82fcde
	$(evaluate-test)
Packit Service 82fcde
# Static use of newlocale is known not to work. See Bug 23164.
Packit Service 82fcde
test-xfail-tst-langinfo-newlocale-static = yes
Packit Service 82fcde
Packit Service 82fcde
$(objpfx)tst-langinfo-setlocale.out: tst-langinfo.sh \
Packit Service 82fcde
			$(objpfx)tst-langinfo-setlocale \
Packit Service 82fcde
			$(objpfx)sort-test.out \
Packit Service 82fcde
			$(addprefix $(objpfx),$(CTYPE_FILES))
Packit Service 82fcde
	$(SHELL) $< $(common-objpfx) '$(test-program-cmd-before-env)' \
Packit Service 82fcde
		 '$(run-program-env)' '$(test-program-cmd-after-env)' > $@; \
Packit Service 82fcde
	$(evaluate-test)
Packit Service 82fcde
$(objpfx)tst-langinfo-setlocale-static.out: tst-langinfo.sh \
Packit Service 82fcde
			$(objpfx)tst-langinfo-setlocale-static \
Packit Service 82fcde
			$(objpfx)sort-test.out \
Packit Service 82fcde
			$(addprefix $(objpfx),$(CTYPE_FILES))
Packit Service 82fcde
	$(SHELL) $< $(common-objpfx) '$(test-program-cmd-before-env)' \
Packit Service 82fcde
		 '$(run-program-env)' '$(test-program-cmd-after-env)' > $@; \
Packit Service 82fcde
	$(evaluate-test)
Packit Service 82fcde
Packit Service 82fcde
$(objpfx)tst-digits.out: $(objpfx)tst-locale.out
Packit Service 82fcde
$(objpfx)tst-mbswcs6.out: $(addprefix $(objpfx),$(CTYPE_FILES))
Packit Service 82fcde
endif
Packit Service 82fcde
Packit Service 82fcde
include SUPPORTED
Packit Service 82fcde
Packit Service 82fcde
INSTALL-SUPPORTED-LOCALES=$(addprefix install-, $(SUPPORTED-LOCALES))
Packit Service 82fcde
Packit Service 82fcde
# Sometimes the whole collection of locale files should be installed.
Packit Service 82fcde
LOCALEDEF=I18NPATH=. GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
Packit Service 82fcde
$(rtld-prefix) $(common-objpfx)locale/localedef
Packit Service 82fcde
install-locales: $(INSTALL-SUPPORTED-LOCALES)
Packit Service 82fcde
Packit Service 82fcde
install-locales-dir:
Packit Service 82fcde
	$(..)./scripts/mkinstalldirs $(inst_complocaledir)
Packit Service 82fcde
Packit Service 82fcde
# The SHIFT_JIS and SHIFT_JISX0213 character maps are not ASCII compatible,
Packit Service 82fcde
# therefore we have to use --no-warnings=ascii to disable the ASCII check.
Packit Service 82fcde
# See localedata/gen-locale.sh for the same logic.
Packit Service 82fcde
$(INSTALL-SUPPORTED-LOCALES): install-locales-dir
Packit Service 82fcde
	@locale=`echo $@ | sed -e 's/^install-//'`; \
Packit Service 82fcde
	charset=`echo $$locale | sed -e 's,.*/,,'`; \
Packit Service 82fcde
	locale=`echo $$locale | sed -e 's,/[^/]*,,'`; \
Packit Service 82fcde
	flags="-c"; \
Packit Service 82fcde
	if [ "$$charset" = 'SHIFT_JIS' ] \
Packit Service 82fcde
	   || [ "$$charset" = 'SHIFT_JISX0213' ]; then \
Packit Service 82fcde
	   flags="$$flags --no-warnings=ascii"; \
Packit Service 82fcde
	fi; \
Packit Service 82fcde
	echo -n `echo $$locale | sed 's/\([^.\@]*\).*/\1/'`; \
Packit Service 82fcde
	echo -n ".$$charset"; \
Packit Service 82fcde
	echo -n `echo $$locale | sed 's/\([^\@]*\)\(\@.*\)*/\2/'`; \
Packit Service 82fcde
	echo -n '...'; \
Packit Service 82fcde
	input=`echo $$locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`; \
Packit Service 82fcde
	$(LOCALEDEF) $$flags --alias-file=../intl/locale.alias \
Packit Service 82fcde
		     -i locales/$$input -f charmaps/$$charset \
Packit Service 82fcde
		     $(addprefix --prefix=,$(install_root)) $$locale \
Packit Service 82fcde
	&& echo ' done'; \
Packit Service 82fcde
Packit Service 82fcde
tst-setlocale-ENV = LC_ALL=ja_JP.EUC-JP
Packit Service 82fcde
tst-wctype-ENV = LC_ALL=ja_JP.EUC-JP
Packit Service 82fcde
Packit Service 82fcde
tst-leaks-ENV = MALLOC_TRACE=$(objpfx)tst-leaks.mtrace
Packit Service 82fcde
$(objpfx)mtrace-tst-leaks.out: $(objpfx)tst-leaks.out
Packit Service 82fcde
	$(common-objpfx)malloc/mtrace $(objpfx)tst-leaks.mtrace > $@; \
Packit Service 82fcde
	$(evaluate-test)
Packit Service 82fcde
Packit Service 82fcde
bug-setlocale1-ENV-only = LOCPATH=$(objpfx) LC_CTYPE=de_DE.UTF-8
Packit Service 82fcde
bug-setlocale1-static-ENV-only = $(bug-setlocale1-ENV-only)
Packit Service 82fcde
Packit Service 82fcde
$(objdir)/iconvdata/gconv-modules:
Packit Service 82fcde
	$(MAKE) -C ../iconvdata subdir=iconvdata $@