diff options
author | lumag <lumag@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-10-20 09:56:48 +0000 |
---|---|---|
committer | lumag <lumag@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-10-20 09:56:48 +0000 |
commit | 44d459e63ec4b6488b53819511367891d943cf9b (patch) | |
tree | 7ea0c97dece86dd9fe716d6237df979e1b8a359f /DOCS/xml/Makefile | |
parent | 1843717d9ce84c9c20056ab57b984212c7c53386 (diff) | |
download | mpv-44d459e63ec4b6488b53819511367891d943cf9b.tar.bz2 mpv-44d459e63ec4b6488b53819511367891d943cf9b.tar.xz |
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11189 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS/xml/Makefile')
-rw-r--r-- | DOCS/xml/Makefile | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/DOCS/xml/Makefile b/DOCS/xml/Makefile index fcdee08d09..7d0d9db7f1 100644 --- a/DOCS/xml/Makefile +++ b/DOCS/xml/Makefile @@ -6,39 +6,57 @@ SUBDIRS = en fr es ru pl # Generated HTML files go here. HTML_TOP = ../HTML +# Here go unchunked files (all DOCS in single HTML file) +HTML_UNCHUNKED = ../HTML-single .PHONY: all -all: build-html +all: build-html build-html-chunked .PHONY: help help: @echo "Targets:" @echo "********" - @echo "all : Build everything (same as build-html for now)." - @echo "build-html: Build HTML documentation." - @echo "clean-html: Purge the 'HTML' directory." - @echo "distclean : Remove ALL generated files." + @echo "all : Build everything" + @echo " (same as build-html and build-html-chunked for now)." + @echo "build-html : Build HTML documentation (single file)." + @echo "build-html-chunked: Build HTML documentation (multiple files)." + @echo "clean-html : Purge the 'HTML-single' directory." + @echo "clean-html-chunked: Purge the 'HTML' directory." + @echo "distclean : Remove ALL generated files." + +.PHONY: build-html-chunked +build-html-chunked: xsltproc.sh + test -d $(HTML_TOP) || mkdir $(HTML_TOP) + for dir in $(SUBDIRS); do\ + test -f $$dir/Makefile &&\ + (test -d $(HTML_TOP)/$$dir || mkdir $(HTML_TOP)/$$dir) &&\ + if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$dir -C $$dir html-chunked; then :; else exit 1; fi;\ + done .PHONY: build-html build-html: xsltproc.sh test -d $(HTML_TOP) || mkdir $(HTML_TOP) + test -d $(HTML_UNCHUNKED) || mkdir $(HTML_UNCHUNKED) for dir in $(SUBDIRS); do\ test -f $$dir/Makefile &&\ - (test -d $(HTML_TOP)/$$dir || mkdir $(HTML_TOP)/$$dir) &&\ - if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$dir -C $$dir; then :; else exit 1; fi;\ + if $(MAKE) HTMLFILE=../$(HTML_UNCHUNKED)/mplayer_docs_$$dir.html -C $$dir html; then :; else exit 1; fi;\ done -.PHONY: clean-html +.PHONY: clean-html-chunked clean-html: -rm -rf $(HTML_TOP) +.PHONY: clean-html +clean-html: + -rm -rf $(HTML_UNCHUNKED) + .PHONY: distclean -distclean: clean-html +distclean: clean-html clean-html-chunked for dir in $(SUBDIRS); do\ test -f $$dir/Makefile &&\ if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$dir -C $$dir distclean ; then :; else exit 1; fi;\ done - -rm -f html.xsl xsltproc.sh xmllint.sh + -rm -f html.xsl html-chunk.xsl xsltproc.sh xmllint.sh xsltproc.sh: configure ./configure |