Mercurial > mplayer.hg
diff 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 |
line wrap: on
line diff
--- a/Makefile Mon Nov 07 19:54:38 2011 +0000 +++ b/Makefile Mon Nov 07 19:54:40 2011 +0000 @@ -826,6 +826,38 @@ +###### XML documentation ###### + +doc: html-chunked html-single + +html-chunked: $(addprefix html-chunked-,$(DOC_LANGS)) +html-single: $(addprefix html-single-,$(DOC_LANGS)) + +xmllint: $(addprefix xmllint-,$(DOC_LANGS)) + +define lang-def +html-chunked-$(lang): DOCS/HTML/$(lang)/dummy.html +html-single-$(lang): DOCS/HTML/$(lang)/MPlayer.html +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 + +DOCS/HTML/$(lang)/default.css: + mkdir -p $$(@D) + cp -f DOCS/xml/default.css $$(@D) + +DOCS/HTML/$(lang)/dummy.html: + SGML_CATALOG_FILES=$(CATALOG) $(XSLT_COMMAND) $$@ DOCS/xml/html-chunk.xsl $$< + +DOCS/HTML/$(lang)/MPlayer.html: + SGML_CATALOG_FILES=$(CATALOG) $(XSLT_COMMAND) $$@ DOCS/xml/html-single.xsl $$< + +xmllint-$(lang): + SGML_CATALOG_FILES=$(CATALOG) $(XMLLINT_COMMAND) DOCS/xml/$(lang)/main.xml +endef + +$(foreach lang, $(DOC_LANG_ALL),$(eval $(lang-def))) + + + ###### dependency declarations / specific CFLAGS ###### # Make sure all generated header files are created. @@ -931,7 +963,8 @@ distclean: clean testsclean toolsclean driversclean dhahelperclean -$(MAKE) -C ffmpeg $@ - -rm -rf DOCS/tech/doxygen + -rm -rf DOCS/tech/doxygen DOCS/HTML + -rm -f DOCS/xml/html-chunk.xsl DOCS/xml/html-single.xsl -rm -f $(call ADD_ALL_DIRS,/*.d) -rm -f config.* codecs.conf.h help_mp.h version.h TAGS tags -rm -f $(VIDIX_PCI_FILES) @@ -1093,6 +1126,7 @@ .PHONY: all doxygen *install* *tools drivers dhahelper* .PHONY: checkheaders *clean tests check_checksums +.PHONY: doc html-chunked* html-single* xmllint* # Disable suffix rules. Most of the builtin rules are suffix rules, # so this saves some time on slow systems.