comparison Makefile @ 34235:91794b4aa5d0

build: merge DOCS/xml/Makefile into top-level Makefile
author diego
date Mon, 07 Nov 2011 19:54:40 +0000
parents 3053e7ffd08d
children f6cce8c4ea66
comparison
equal deleted inserted replaced
34234:4ec96d5d2e4c 34235:91794b4aa5d0
824 824
825 checkheaders: $(ALLHEADERS:.h=.ho) 825 checkheaders: $(ALLHEADERS:.h=.ho)
826 826
827 827
828 828
829 ###### XML documentation ######
830
831 doc: html-chunked html-single
832
833 html-chunked: $(addprefix html-chunked-,$(DOC_LANGS))
834 html-single: $(addprefix html-single-,$(DOC_LANGS))
835
836 xmllint: $(addprefix xmllint-,$(DOC_LANGS))
837
838 define lang-def
839 html-chunked-$(lang): DOCS/HTML/$(lang)/dummy.html
840 html-single-$(lang): DOCS/HTML/$(lang)/MPlayer.html
841 DOCS/HTML/$(lang)/dummy.html DOCS/HTML/$(lang)/MPlayer.html: DOCS/xml/$(lang)/main.xml $(wildcard DOCS/xml/$(lang)/*.xml) DOCS/xml/html-common.xsl DOCS/HTML/$(lang)/default.css
842
843 DOCS/HTML/$(lang)/default.css:
844 mkdir -p $$(@D)
845 cp -f DOCS/xml/default.css $$(@D)
846
847 DOCS/HTML/$(lang)/dummy.html:
848 SGML_CATALOG_FILES=$(CATALOG) $(XSLT_COMMAND) $$@ DOCS/xml/html-chunk.xsl $$<
849
850 DOCS/HTML/$(lang)/MPlayer.html:
851 SGML_CATALOG_FILES=$(CATALOG) $(XSLT_COMMAND) $$@ DOCS/xml/html-single.xsl $$<
852
853 xmllint-$(lang):
854 SGML_CATALOG_FILES=$(CATALOG) $(XMLLINT_COMMAND) DOCS/xml/$(lang)/main.xml
855 endef
856
857 $(foreach lang, $(DOC_LANG_ALL),$(eval $(lang-def)))
858
859
860
829 ###### dependency declarations / specific CFLAGS ###### 861 ###### dependency declarations / specific CFLAGS ######
830 862
831 # Make sure all generated header files are created. 863 # Make sure all generated header files are created.
832 codec-cfg.o: codecs.conf.h 864 codec-cfg.o: codecs.conf.h
833 $(DEP_FILES) $(MENCODER_DEPS) $(MPLAYER_DEPS): help_mp.h 865 $(DEP_FILES) $(MENCODER_DEPS) $(MPLAYER_DEPS): help_mp.h
929 -rm -f $(call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~) 961 -rm -f $(call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~)
930 -rm -f $(call ADD_ALL_EXESUFS,mplayer mencoder) 962 -rm -f $(call ADD_ALL_EXESUFS,mplayer mencoder)
931 963
932 distclean: clean testsclean toolsclean driversclean dhahelperclean 964 distclean: clean testsclean toolsclean driversclean dhahelperclean
933 -$(MAKE) -C ffmpeg $@ 965 -$(MAKE) -C ffmpeg $@
934 -rm -rf DOCS/tech/doxygen 966 -rm -rf DOCS/tech/doxygen DOCS/HTML
967 -rm -f DOCS/xml/html-chunk.xsl DOCS/xml/html-single.xsl
935 -rm -f $(call ADD_ALL_DIRS,/*.d) 968 -rm -f $(call ADD_ALL_DIRS,/*.d)
936 -rm -f config.* codecs.conf.h help_mp.h version.h TAGS tags 969 -rm -f config.* codecs.conf.h help_mp.h version.h TAGS tags
937 -rm -f $(VIDIX_PCI_FILES) 970 -rm -f $(VIDIX_PCI_FILES)
938 -rm -f $(call ADD_ALL_EXESUFS,codec-cfg cpuinfo) 971 -rm -f $(call ADD_ALL_EXESUFS,codec-cfg cpuinfo)
939 972
1091 1124
1092 -include $(DEP_FILES) $(DRIVER_DEP_FILES) $(TESTS_DEP_FILES) $(TOOLS_DEP_FILES) $(DHAHELPER_DEP_FILES) 1125 -include $(DEP_FILES) $(DRIVER_DEP_FILES) $(TESTS_DEP_FILES) $(TOOLS_DEP_FILES) $(DHAHELPER_DEP_FILES)
1093 1126
1094 .PHONY: all doxygen *install* *tools drivers dhahelper* 1127 .PHONY: all doxygen *install* *tools drivers dhahelper*
1095 .PHONY: checkheaders *clean tests check_checksums 1128 .PHONY: checkheaders *clean tests check_checksums
1129 .PHONY: doc html-chunked* html-single* xmllint*
1096 1130
1097 # Disable suffix rules. Most of the builtin rules are suffix rules, 1131 # Disable suffix rules. Most of the builtin rules are suffix rules,
1098 # so this saves some time on slow systems. 1132 # so this saves some time on slow systems.
1099 .SUFFIXES: 1133 .SUFFIXES: