glibc40/Makefile.locales
2015-01-28 19:52:58 +10:00

21 lines
673 B
Text

SUPPORTED ?= /usr/share/i18n/SUPPORTED
include $(SUPPORTED)
INSTALL-SUPPORTED-LOCALES=$(addprefix install-, $(SUPPORTED-LOCALES))
install-locales: $(INSTALL-SUPPORTED-LOCALES)
install-locales-dir:
mkdir -p $(DESTDIR)/usr/lib/locale
$(INSTALL-SUPPORTED-LOCALES): install-locales-dir
@locale=`echo $@ | sed -e 's/^install-//'`; \
charset=`echo $$locale | sed -e 's,.*/,,'`; \
locale=`echo $$locale | sed -e 's,/[^/]*,,'`; \
input=`echo $$locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`; \
echo "localedef -i $$input -c -f $$charset" \
"$(DESTDIR)/usr/lib/locale/$$locale"; \
localedef -i $$input -c -f $$charset \
$(DESTDIR)/usr/lib/locale/$$locale; \