aboutsummaryrefslogtreecommitdiff
path: root/locale/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-12-18 11:36:29 +0100
committerFlorian Weimer <fweimer@redhat.com>2018-12-18 11:36:29 +0100
commit053c52b17739a584ee73d336e547b15abcdabd49 (patch)
tree719a54be3448412efc9d46ddfbc2bf9997daa636 /locale/Makefile
parent40e6c1ec1f9b59b7917a8899f0894e49f16f51f1 (diff)
downloadglibc-053c52b17739a584ee73d336e547b15abcdabd49.tar
glibc-053c52b17739a584ee73d336e547b15abcdabd49.tar.gz
glibc-053c52b17739a584ee73d336e547b15abcdabd49.tar.bz2
glibc-053c52b17739a584ee73d336e547b15abcdabd49.zip
locale: Rewrite locale/gen-translit.pl in Python
This commit does not change the generated output file. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'locale/Makefile')
-rw-r--r--locale/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/locale/Makefile b/locale/Makefile
index fd9972279b..951c6154ac 100644
--- a/locale/Makefile
+++ b/locale/Makefile
@@ -37,6 +37,8 @@ others = localedef locale
install-bin = localedef locale
extra-objs = $(localedef-modules:=.o) $(localedef-aux:=.o) \
$(locale-modules:=.o) $(lib-modules:=.o)
+generated += C-translit.h
+before-compile += $(objpfx)C-translit.h
extra-libs = libBrokenLocale
extra-libs-others = $(extra-libs)
@@ -74,8 +76,9 @@ $(objpfx)localedef: $(localedef-aux:%=$(objpfx)%.o)
$(objpfx)locale: $(locale-modules:%=$(objpfx)%.o)
$(objpfx)localedef $(objpfx)locale: $(lib-modules:%=$(objpfx)%.o)
-C-translit.h: C-translit.h.in gen-translit.pl
- $(PERL) gen-translit.pl < $< > $@.tmp
+$(objpfx)C-translit.h: C-translit.h.in gen-translit.py
+ $(make-target-directory)
+ $(PYTHON) gen-translit.py < $< > $@.tmp
mv -f $@.tmp $@
# The path to the compiled binary locale archive or compiled locales,