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."
|
|
|
|
@echo "distclean : Remove ALL generated files."
|
|
|
|
|
|
|
|
.PHONY: build-html-chunked
|
|
|
|
build-html-chunked: xsltproc.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
|
|
|
|
build-html-single: xsltproc.sh
|
|
|
|
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) &&\
|
|
|
|
if $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$$dir/MPlayer.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-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-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
|
|
|
|
2003-10-21 01:36:00 +00:00
|
|
|
clean: clean-html-chunked clean-html-single
|