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-10-21 01:36:00 +00:00
|
|
|
# Generated chunked HTML files go here.
|
|
|
|
HTML_CHUNKED = ../HTML
|
2003-03-30 18:48:23 +00:00
|
|
|
|
2003-10-21 01:36:00 +00:00
|
|
|
# Generated single HTML files go here.
|
|
|
|
HTML_SINGLE = ../HTML-single
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2003-06-18 17:37:36 +00:00
|
|
|
.PHONY: all
|
2003-10-21 01:36:00 +00:00
|
|
|
all: build-html-chunked build-html-single
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2003-06-18 17:37:36 +00:00
|
|
|
.PHONY: help
|
|
|
|
help:
|
|
|
|
@echo "Targets:"
|
|
|
|
@echo "********"
|
2003-10-21 01:36:00 +00:00
|
|
|
@echo "all : Build everything (default)."
|
|
|
|
@echo "build-html-single : Build HTML documentation (single file)."
|
2003-10-20 09:56:48 +00:00
|
|
|
@echo "build-html-chunked: Build HTML documentation (multiple files)."
|
2003-10-21 01:36:00 +00:00
|
|
|
@echo "clean-html-single : Purge the 'HTML-single' directory."
|
2003-10-20 09:56:48 +00:00
|
|
|
@echo "clean-html-chunked: Purge the 'HTML' directory."
|
2003-10-21 11:07:02 +00:00
|
|
|
@echo "clean : Purge the 'HTML' and 'HTML-single' directories."
|
2003-10-20 09:56:48 +00:00
|
|
|
@echo "distclean : Remove ALL generated files."
|
|
|
|
|
|
|
|
.PHONY: build-html-chunked
|
2003-10-30 12:10:09 +00:00
|
|
|
build-html-chunked: xsltproc.sh xmllint.sh
|
2003-10-21 01:36:00 +00:00
|
|
|
test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED)
|
2003-10-20 09:56:48 +00:00
|
|
|
for dir in $(SUBDIRS); do\
|
|
|
|
test -f $$dir/Makefile &&\
|
2003-10-21 01:36:00 +00:00
|
|
|
(test -d $(HTML_CHUNKED)/$$dir || mkdir $(HTML_CHUNKED)/$$dir) &&\
|
|
|
|
if $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$$dir -C $$dir html-chunked; then :; else exit 1; fi;\
|
2003-10-20 09:56:48 +00:00
|
|
|
done
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2003-10-21 01:36:00 +00:00
|
|
|
.PHONY: build-html-single
|
2003-10-30 12:10:09 +00:00
|
|
|
build-html-single: xsltproc.sh xmllint.sh
|
2003-10-21 01:36:00 +00:00
|
|
|
test -d $(HTML_SINGLE) || mkdir $(HTML_SINGLE)
|
2003-10-08 02:00:59 +00:00
|
|
|
for dir in $(SUBDIRS); do\
|
|
|
|
test -f $$dir/Makefile &&\
|
2003-10-21 01:36:00 +00:00
|
|
|
(test -d $(HTML_SINGLE)/$$dir || mkdir $(HTML_SINGLE)/$$dir) &&\
|
2003-10-21 11:07:02 +00:00
|
|
|
if $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$$dir/MPlayer.html -C $$dir html-single; 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-10-21 01:36:00 +00:00
|
|
|
clean-html-chunked:
|
|
|
|
-rm -rf $(HTML_CHUNKED)
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2003-10-21 01:36:00 +00:00
|
|
|
.PHONY: clean-html-single
|
|
|
|
clean-html-single:
|
|
|
|
-rm -rf $(HTML_SINGLE)
|
2003-10-20 09:56:48 +00:00
|
|
|
|
2003-03-23 23:26:55 +00:00
|
|
|
.PHONY: distclean
|
2003-10-21 01:36:00 +00:00
|
|
|
distclean: clean-html-chunked clean-html-single
|
2003-10-08 02:00:59 +00:00
|
|
|
for dir in $(SUBDIRS); do\
|
|
|
|
test -f $$dir/Makefile &&\
|
2003-10-21 01:36:00 +00:00
|
|
|
if $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$$dir -C $$dir distclean ; then :; else exit 1; fi;\
|
2003-10-08 02:00:59 +00:00
|
|
|
done
|
2003-10-21 11:07:02 +00:00
|
|
|
-rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh
|
2003-06-18 17:37:36 +00:00
|
|
|
|
2003-10-30 12:10:09 +00:00
|
|
|
xsltproc.sh xmllint.sh:
|
|
|
|
sh configure
|
2003-10-09 21:21:31 +00:00
|
|
|
|
2003-10-21 01:36:00 +00:00
|
|
|
clean: clean-html-chunked clean-html-single
|