about summary refs log tree commit diff
path: root/locale/Makefile
diff options
context:
space:
mode:
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,