1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00

Make XML documentation build process nonrecursive.

This greatly simplifies the documentation build process and the Makefiles.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31160 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2010-05-11 13:13:32 +00:00
parent e3d4e1a3ce
commit 8de8a1c713
2 changed files with 12 additions and 35 deletions

View File

@ -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)))

View File

@ -1,28 +0,0 @@
#
# Makefile.inc for Makefiles in subdirectories.
#
# Dependency information.
$(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard $(LANG)/*.xml)
# This is the main target...
all: html-chunked html-single
html-chunked: $(HTMLDIR)/index.html
html-single: $(HTMLDIR)/MPlayer.html
xmllint: $(LANG)/main.xml
./xmllint.sh $<
$(HTMLDIR)/default.css:
cp -f default.css $(@D)
$(HTMLDIR)/index.html: $(LANG)/main.xml html-chunk.xsl html-common.xsl $(HTMLDIR)/default.css xmllint
./xsltproc.sh $(HTMLDIR)/ html-chunk.xsl $<
$(HTMLDIR)/MPlayer.html: $(LANG)/main.xml html-single.xsl html-common.xsl $(HTMLDIR)/default.css xmllint
./xsltproc.sh $@ html-single.xsl $<
html-chunk.xsl html-single.xsl $(LANG)/main.xml:
sh configure
.PHONY: all html-chunked html-single xmllint