summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-26 13:38:17 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-26 13:38:17 +0000
commit919a6cdc0d6a1b991d950ae1c44b20ad2185ac0d (patch)
tree3be72a5d03118770fc3216b71078fd52a87bba5f /Makefile
parenta6eaa9f992f5514f9bd50b54a9e304113954320f (diff)
downloadmpv-919a6cdc0d6a1b991d950ae1c44b20ad2185ac0d.tar.bz2
mpv-919a6cdc0d6a1b991d950ae1c44b20ad2185ac0d.tar.xz
--charset configure option to convert help messages charset
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14831 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9f06097596..3df07e3e88 100644
--- a/Makefile
+++ b/Makefile
@@ -399,7 +399,11 @@ doxygen_clean:
help_mp.h: help/help_mp-en.h $(HELP_FILE)
@echo '// WARNING! This is a generated file. Do NOT edit.' > help_mp.h
@echo '// See the help/ subdir for the editable files.' >> help_mp.h
+ifeq ($(CHARSET),)
@echo '#include "$(HELP_FILE)"' >> help_mp.h
+else
+ iconv -f `cat $(HELP_FILE).charset` -t $(CHARSET) "$(HELP_FILE)" >> help_mp.h
+endif
ifneq ($(HELP_FILE),help/help_mp-en.h)
@echo "Adding untranslated messages to help_mp.h"