2014-05-22 18:55:40 +11:00
|
|
|
SUPPORTED ?= /usr/share/i18n/SUPPORTED
|
|
|
|
|
|
|
|
include $(SUPPORTED)
|
|
|
|
|
|
|
|
INSTALL-SUPPORTED-LOCALES=$(addprefix install-, $(SUPPORTED-LOCALES))
|
|
|
|
|
|
|
|
install-locales: $(INSTALL-SUPPORTED-LOCALES)
|
|
|
|
|
|
|
|
install-locales-dir:
|
2015-01-28 19:52:58 +10:00
|
|
|
mkdir -p $(DESTDIR)/usr/lib/locale
|
2014-05-22 18:55:40 +11:00
|
|
|
|
|
|
|
$(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" \
|
2015-01-28 19:52:58 +10:00
|
|
|
"$(DESTDIR)/usr/lib/locale/$$locale"; \
|
2014-05-22 18:55:40 +11:00
|
|
|
localedef -i $$input -c -f $$charset \
|
2015-01-28 19:52:58 +10:00
|
|
|
$(DESTDIR)/usr/lib/locale/$$locale; \
|
2014-05-22 18:55:40 +11:00
|
|
|
|