comparison Makefile @ 26562:36a4064bba4f

cosmetics: Move version.h/help_mp.h generation rules to a better place.
author diego
date Tue, 29 Apr 2008 08:35:58 +0000
parents 359bf9284e8b
children 098e4774b951
comparison
equal deleted inserted replaced
26561:359bf9284e8b 26562:36a4064bba4f
696 DEPS = $(filter-out %.S,$(patsubst %.cpp,%.d,$(patsubst %.c,%.d,$(SRCS_COMMON) $(SRCS_MPLAYER:.m=.d) $(SRCS_MENCODER)))) 696 DEPS = $(filter-out %.S,$(patsubst %.cpp,%.d,$(patsubst %.c,%.d,$(SRCS_COMMON) $(SRCS_MPLAYER:.m=.d) $(SRCS_MENCODER))))
697 $(DEPS) recurse: help_mp.h version.h codecs.conf.h 697 $(DEPS) recurse: help_mp.h version.h codecs.conf.h
698 dep depend: $(DEPS) 698 dep depend: $(DEPS)
699 for part in $(PARTS); do $(MAKE) -C $$part depend; done 699 for part in $(PARTS); do $(MAKE) -C $$part depend; done
700 700
701 # rebuild at every config.h/config.mak change:
702 version.h: config.h config.mak
703 ./version.sh `$(CC) -dumpversion`
704
705 help_mp.h: help/help_mp-en.h $(HELP_FILE)
706 @echo '// WARNING! This is a generated file. Do NOT edit.' > help_mp.h
707 @echo '// See the help/ subdir for the editable files.' >> help_mp.h
708 @echo '#ifndef MPLAYER_HELP_MP_H' >> help_mp.h
709 @echo '#define MPLAYER_HELP_MP_H' >> help_mp.h
710 ifeq ($(CHARSET),)
711 @echo '#include "$(HELP_FILE)"' >> help_mp.h
712 else
713 iconv -f UTF-8 -t $(CHARSET) "$(HELP_FILE)" >> help_mp.h
714 endif
715 @echo '#endif /* MPLAYER_HELP_MP_H */' >> help_mp.h
716
717 ifneq ($(HELP_FILE),help/help_mp-en.h)
718 @echo "Adding untranslated messages to help_mp.h"
719 @echo '// untranslated messages from the English master file:' >> help_mp.h
720 @help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> help_mp.h
721 endif
722
701 define RECURSIVE_RULE 723 define RECURSIVE_RULE
702 $(part)/$(part).a: 724 $(part)/$(part).a:
703 $(MAKE) -C $(part) 725 $(MAKE) -C $(part)
704 endef 726 endef
705 727
845 config.mak: configure 867 config.mak: configure
846 @echo "############################################################" 868 @echo "############################################################"
847 @echo "####### Please run ./configure again - it's changed! #######" 869 @echo "####### Please run ./configure again - it's changed! #######"
848 @echo "############################################################" 870 @echo "############################################################"
849 871
850 # rebuild at every config.h/config.mak change:
851 version.h: config.h config.mak
852 ./version.sh `$(CC) -dumpversion`
853
854 doxygen: 872 doxygen:
855 doxygen DOCS/tech/Doxyfile 873 doxygen DOCS/tech/Doxyfile
856 874
857 doxygen_clean: 875 doxygen_clean:
858 -rm -rf DOCS/tech/doxygen 876 -rm -rf DOCS/tech/doxygen
859
860 help_mp.h: help/help_mp-en.h $(HELP_FILE)
861 @echo '// WARNING! This is a generated file. Do NOT edit.' > help_mp.h
862 @echo '// See the help/ subdir for the editable files.' >> help_mp.h
863 @echo '#ifndef MPLAYER_HELP_MP_H' >> help_mp.h
864 @echo '#define MPLAYER_HELP_MP_H' >> help_mp.h
865 ifeq ($(CHARSET),)
866 @echo '#include "$(HELP_FILE)"' >> help_mp.h
867 else
868 iconv -f UTF-8 -t $(CHARSET) "$(HELP_FILE)" >> help_mp.h
869 endif
870 @echo '#endif /* MPLAYER_HELP_MP_H */' >> help_mp.h
871
872 ifneq ($(HELP_FILE),help/help_mp-en.h)
873 @echo "Adding untranslated messages to help_mp.h"
874 @echo '// untranslated messages from the English master file:' >> help_mp.h
875 @help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> help_mp.h
876 endif
877 877
878 878
879 TOOLS = TOOLS/alaw-gen$(EXESUF) \ 879 TOOLS = TOOLS/alaw-gen$(EXESUF) \
880 TOOLS/asfinfo$(EXESUF) \ 880 TOOLS/asfinfo$(EXESUF) \
881 TOOLS/avi-fix$(EXESUF) \ 881 TOOLS/avi-fix$(EXESUF) \