Mercurial > mplayer.hg
diff DOCS/xml/Makefile @ 31103:1ff8bca53fe6
Make XML documentation build process nonrecursive.
This greatly simplifies the documentation build process and the Makefiles.
author | diego |
---|---|
date | Tue, 11 May 2010 13:13:32 +0000 |
parents | 7a2ec1d564ce |
children | cf40376e7302 |
line wrap: on
line diff
--- a/DOCS/xml/Makefile Tue May 11 11:52:41 2010 +0000 +++ b/DOCS/xml/Makefile Tue May 11 13:13:32 2010 +0000 @@ -37,16 +37,21 @@ sh configure define lang-def -html-chunked-$(lang) html-single-$(lang): $(HTML)/$(lang) $(CONFIGURE_GENERATED) +html-chunked-$(lang): $(HTML)/$(lang)/index.html +html-single-$(lang): $(HTML)/$(lang)/MPlayer.html +$(HTML)/$(lang)/index.html $(HTML)/$(lang)/MPlayer.html: $(lang)/main.xml $(wildcard $(lang)/*.xml) $(HTML)/$(lang) $(CONFIGURE_GENERATED) html-common.xsl $(HTML)/$(lang)/default.css xmllint-$(lang) -html-chunked-$(lang): - $(MAKE) HTMLDIR=$$< LANG=$(lang) -f Makefile.inc html-chunked +$(HTML)/$(lang)/default.css: $(HTML)/$(lang) + cp -f default.css $$(@D) -html-single-$(lang): - $(MAKE) HTMLDIR=$$< LANG=$(lang) -f Makefile.inc html-single +$(HTML)/$(lang)/index.html: + ./xsltproc.sh $$(@D)/ html-chunk.xsl $$< -xmllint-$(lang): xmllint.sh - $(MAKE) -C $(lang) xmllint +$(HTML)/$(lang)/MPlayer.html: + ./xsltproc.sh $$@ html-single.xsl $$< + +xmllint-$(lang): $(lang)/main.xml + ./xmllint.sh $$< endef $(foreach lang, $(DOC_LANG_ALL),$(eval $(lang-def)))