2003-03-23 23:26:55 +00:00
|
|
|
# Makefile for generating the HTML documentation
|
|
|
|
|
|
|
|
# List of subdirectories to be processed.
|
2003-10-15 17:00:25 +00:00
|
|
|
SUBDIRS = en fr es ru pl
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2003-06-18 17:37:36 +00:00
|
|
|
# Generated HTML files go here.
|
2003-03-30 18:48:23 +00:00
|
|
|
HTML_TOP = ../HTML
|
|
|
|
|
2003-10-20 09:56:48 +00:00
|
|
|
# Here go unchunked files (all DOCS in single HTML file)
|
|
|
|
HTML_UNCHUNKED = ../HTML-single
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2003-06-18 17:37:36 +00:00
|
|
|
.PHONY: all
|
2003-10-20 09:56:48 +00:00
|
|
|
all: build-html build-html-chunked
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2003-06-18 17:37:36 +00:00
|
|
|
.PHONY: help
|
|
|
|
help:
|
|
|
|
@echo "Targets:"
|
|
|
|
@echo "********"
|
2003-10-20 09:56:48 +00:00
|
|
|
@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
|
2003-03-23 23:26:55 +00:00
|
|
|
|
|
|
|
.PHONY: build-html
|
2003-06-18 17:37:36 +00:00
|
|
|
build-html: xsltproc.sh
|
2003-03-30 18:48:23 +00:00
|
|
|
test -d $(HTML_TOP) || mkdir $(HTML_TOP)
|
2003-10-20 09:56:48 +00:00
|
|
|
test -d $(HTML_UNCHUNKED) || mkdir $(HTML_UNCHUNKED)
|
2003-10-08 02:00:59 +00:00
|
|
|
for dir in $(SUBDIRS); do\
|
|
|
|
test -f $$dir/Makefile &&\
|
2003-10-20 09:56:48 +00:00
|
|
|
if $(MAKE) HTMLFILE=../$(HTML_UNCHUNKED)/mplayer_docs_$$dir.html -C $$dir html; then :; else exit 1; fi;\
|
2003-03-23 23:26:55 +00:00
|
|
|
done
|
|
|
|
|
2003-10-20 09:56:48 +00:00
|
|
|
.PHONY: clean-html-chunked
|
2003-03-23 23:26:55 +00:00
|
|
|
clean-html:
|
2003-03-30 18:48:23 +00:00
|
|
|
-rm -rf $(HTML_TOP)
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2003-10-20 09:56:48 +00:00
|
|
|
.PHONY: clean-html
|
|
|
|
clean-html:
|
|
|
|
-rm -rf $(HTML_UNCHUNKED)
|
|
|
|
|
2003-03-23 23:26:55 +00:00
|
|
|
.PHONY: distclean
|
2003-10-20 09:56:48 +00:00
|
|
|
distclean: clean-html clean-html-chunked
|
2003-10-08 02:00:59 +00:00
|
|
|
for dir in $(SUBDIRS); do\
|
|
|
|
test -f $$dir/Makefile &&\
|
2003-10-08 07:38:52 +00:00
|
|
|
if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$dir -C $$dir distclean ; then :; else exit 1; fi;\
|
2003-10-08 02:00:59 +00:00
|
|
|
done
|
2003-10-20 09:56:48 +00:00
|
|
|
-rm -f html.xsl html-chunk.xsl xsltproc.sh xmllint.sh
|
2003-06-18 17:37:36 +00:00
|
|
|
|
|
|
|
xsltproc.sh: configure
|
|
|
|
./configure
|
2003-10-09 21:21:31 +00:00
|
|
|
|
|
|
|
clean: clean-html
|