Author: diego
Date: Tue May 11 15:13:32 2010
New Revision: 31160

Log:
Make XML documentation build process nonrecursive.
This greatly simplifies the documentation build process and the Makefiles.

Deleted:
   trunk/DOCS/xml/Makefile.inc
Modified:
   trunk/DOCS/xml/Makefile

Modified: trunk/DOCS/xml/Makefile
==============================================================================
--- trunk/DOCS/xml/Makefile     Tue May 11 13:52:41 2010        (r31159)
+++ trunk/DOCS/xml/Makefile     Tue May 11 15:13:32 2010        (r31160)
@@ -37,16 +37,21 @@ $(CONFIGURE_GENERATED) $(MAIN_XML_ALL):
        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)))
_______________________________________________
MPlayer-DOCS mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-docs

Reply via email to