diff Makefile @ 26878:73921138ff30

Move messages header file creation to a separate shell script.
author diego
date Tue, 27 May 2008 22:03:21 +0000
parents af5174b932ad
children 8eacd1538e64
line wrap: on
line diff
--- a/Makefile	Tue May 27 18:39:57 2008 +0000
+++ b/Makefile	Tue May 27 22:03:21 2008 +0000
@@ -743,17 +743,7 @@
 	@echo "############################################################"
 
 help_mp.h: help/help_mp-en.h $(HELP_FILE)
-	@echo '// WARNING! This is a generated file. Do NOT edit.' > $@
-	@echo '// See the help/ subdir for the editable files.' >> $@
-	@echo '#ifndef MPLAYER_HELP_MP_H' >> $@
-	@echo '#define MPLAYER_HELP_MP_H' >> $@
-	@cat "$(HELP_FILE)" >> $@
-	@echo '// untranslated messages from the English master file:' >> $@
-	help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> $@
-	@echo '#endif /* MPLAYER_HELP_MP_H */' >> $@
-ifneq ($(CHARSET),UTF-8)
-	iconv -f UTF-8 -t $(CHARSET) $@ > $@.tmp; mv $@.tmp $@
-endif
+	help/help_create.sh $(HELP_FILE) $(CHARSET)
 
 # rebuild version.h each time the working copy is updated
 ifeq ($(wildcard .svn/entries),.svn/entries)