Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
26877:4ab1cfcee430 | 26878:73921138ff30 |
---|---|
741 @echo "############################################################" | 741 @echo "############################################################" |
742 @echo "####### Please run ./configure again - it's changed! #######" | 742 @echo "####### Please run ./configure again - it's changed! #######" |
743 @echo "############################################################" | 743 @echo "############################################################" |
744 | 744 |
745 help_mp.h: help/help_mp-en.h $(HELP_FILE) | 745 help_mp.h: help/help_mp-en.h $(HELP_FILE) |
746 @echo '// WARNING! This is a generated file. Do NOT edit.' > $@ | 746 help/help_create.sh $(HELP_FILE) $(CHARSET) |
747 @echo '// See the help/ subdir for the editable files.' >> $@ | |
748 @echo '#ifndef MPLAYER_HELP_MP_H' >> $@ | |
749 @echo '#define MPLAYER_HELP_MP_H' >> $@ | |
750 @cat "$(HELP_FILE)" >> $@ | |
751 @echo '// untranslated messages from the English master file:' >> $@ | |
752 help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> $@ | |
753 @echo '#endif /* MPLAYER_HELP_MP_H */' >> $@ | |
754 ifneq ($(CHARSET),UTF-8) | |
755 iconv -f UTF-8 -t $(CHARSET) $@ > $@.tmp; mv $@.tmp $@ | |
756 endif | |
757 | 747 |
758 # rebuild version.h each time the working copy is updated | 748 # rebuild version.h each time the working copy is updated |
759 ifeq ($(wildcard .svn/entries),.svn/entries) | 749 ifeq ($(wildcard .svn/entries),.svn/entries) |
760 version.h: .svn/entries | 750 version.h: .svn/entries |
761 endif | 751 endif |