Mercurial > mplayer.hg
comparison Makefile @ 26802:efc87dbf2f03
Simplify help_mp.h generation commands by using $@.
author | diego |
---|---|
date | Sun, 18 May 2008 23:58:05 +0000 |
parents | 4b76560a933f |
children | 91d6ee54e94d |
comparison
equal
deleted
inserted
replaced
26801:4b76560a933f | 26802:efc87dbf2f03 |
---|---|
759 endif | 759 endif |
760 version.h: | 760 version.h: |
761 ./version.sh `$(CC) -dumpversion` | 761 ./version.sh `$(CC) -dumpversion` |
762 | 762 |
763 help_mp.h: help/help_mp-en.h $(HELP_FILE) | 763 help_mp.h: help/help_mp-en.h $(HELP_FILE) |
764 @echo '// WARNING! This is a generated file. Do NOT edit.' > help_mp.h | 764 @echo '// WARNING! This is a generated file. Do NOT edit.' > $@ |
765 @echo '// See the help/ subdir for the editable files.' >> help_mp.h | 765 @echo '// See the help/ subdir for the editable files.' >> $@ |
766 @echo '#ifndef MPLAYER_HELP_MP_H' >> help_mp.h | 766 @echo '#ifndef MPLAYER_HELP_MP_H' >> $@ |
767 @echo '#define MPLAYER_HELP_MP_H' >> help_mp.h | 767 @echo '#define MPLAYER_HELP_MP_H' >> $@ |
768 ifeq ($(CHARSET),UTF-8) | 768 ifeq ($(CHARSET),UTF-8) |
769 @echo '#include "$(HELP_FILE)"' >> help_mp.h | 769 @echo '#include "$(HELP_FILE)"' >> $@ |
770 else | 770 else |
771 iconv -f UTF-8 -t $(CHARSET) "$(HELP_FILE)" >> help_mp.h | 771 iconv -f UTF-8 -t $(CHARSET) "$(HELP_FILE)" >> $@ |
772 endif | 772 endif |
773 @echo '#endif /* MPLAYER_HELP_MP_H */' >> help_mp.h | 773 @echo '#endif /* MPLAYER_HELP_MP_H */' >> $@ |
774 @echo '// untranslated messages from the English master file:' >> help_mp.h | 774 @echo '// untranslated messages from the English master file:' >> $@ |
775 help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> help_mp.h | 775 help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> $@ |
776 | 776 |
777 | 777 |
778 | 778 |
779 ###### dependency declarations / specific CFLAGS ###### | 779 ###### dependency declarations / specific CFLAGS ###### |
780 | 780 |