diff options
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r-- | scripts/kconfig/Makefile | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 80914358817e..d28bf8550171 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -24,22 +24,25 @@ oldconfig: $(obj)/conf | |||
24 | silentoldconfig: $(obj)/conf | 24 | silentoldconfig: $(obj)/conf |
25 | $< -s $(Kconfig) | 25 | $< -s $(Kconfig) |
26 | 26 | ||
27 | # Create new linux.po file | 27 | # Create new linux.pot file |
28 | # Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files | 28 | # Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files |
29 | # The symlink is used to repair a deficiency in arch/um | 29 | # The symlink is used to repair a deficiency in arch/um |
30 | update-po-config: $(obj)/kxgettext | 30 | update-po-config: $(obj)/kxgettext |
31 | xgettext --default-domain=linux \ | 31 | $(Q)echo " GEN config" |
32 | $(Q)xgettext --default-domain=linux \ | ||
32 | --add-comments --keyword=_ --keyword=N_ \ | 33 | --add-comments --keyword=_ --keyword=N_ \ |
33 | --from-code=UTF-8 \ | 34 | --from-code=UTF-8 \ |
34 | --files-from=scripts/kconfig/POTFILES.in \ | 35 | --files-from=scripts/kconfig/POTFILES.in \ |
35 | --output $(obj)/config.pot | 36 | --output $(obj)/config.pot |
36 | $(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot | 37 | $(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot |
37 | $(Q)ln -fs Kconfig.i386 arch/um/Kconfig.arch | 38 | $(Q)ln -fs Kconfig.i386 arch/um/Kconfig.arch |
38 | (for i in `ls arch/`; \ | 39 | $(Q)(for i in `ls arch/`; \ |
39 | do \ | 40 | do \ |
40 | $(obj)/kxgettext arch/$$i/Kconfig; \ | 41 | echo " GEN $$i"; \ |
41 | done ) >> $(obj)/config.pot | 42 | $(obj)/kxgettext arch/$$i/Kconfig \ |
42 | msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \ | 43 | >> $(obj)/config.pot; \ |
44 | done ) | ||
45 | $(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \ | ||
43 | --output $(obj)/linux.pot | 46 | --output $(obj)/linux.pot |
44 | $(Q)rm -f arch/um/Kconfig.arch | 47 | $(Q)rm -f arch/um/Kconfig.arch |
45 | $(Q)rm -f $(obj)/config.pot | 48 | $(Q)rm -f $(obj)/config.pot |
@@ -138,6 +141,7 @@ endif | |||
138 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ | 141 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ |
139 | .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c | 142 | .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c |
140 | clean-files += mconf qconf gconf | 143 | clean-files += mconf qconf gconf |
144 | clean-files += config.pot linux.pot | ||
141 | 145 | ||
142 | # Check that we have the required ncurses stuff installed for lxdialog (menuconfig) | 146 | # Check that we have the required ncurses stuff installed for lxdialog (menuconfig) |
143 | PHONY += $(obj)/dochecklxdialog | 147 | PHONY += $(obj)/dochecklxdialog |