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
|
2004-01-20 23:31:14 +00:00
|
|
|
all: html-chunked 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)."
|
2004-01-20 23:31:14 +00:00
|
|
|
@echo "html-single : Build HTML documentation (single file)."
|
2004-01-29 23:23:01 +00:00
|
|
|
@echo "html-single-LANG : As above, but only one language."
|
2004-01-20 23:31:14 +00:00
|
|
|
@echo "html-chunked : Build HTML documentation (multiple files)."
|
2004-01-29 23:23:01 +00:00
|
|
|
@echo "html-chunked-LANG : As above, but only one language."
|
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."
|
2004-01-29 23:23:01 +00:00
|
|
|
@echo "distclean-LANG : Remove ALL generated files for one language."
|
|
|
|
@echo "Substitute LANG for one of $(SUBDIRS)"
|
2003-10-20 09:56:48 +00:00
|
|
|
|
2004-01-29 23:23:01 +00:00
|
|
|
.PHONY: html-chunked chunked-dir
|
|
|
|
html-chunked: xsltproc.sh xmllint.sh chunked-dir $(addprefix html-chunked-,$(SUBDIRS))
|
|
|
|
chunked-dir:
|
2004-01-24 22:31:11 +00:00
|
|
|
test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED)
|
2004-01-29 23:23:01 +00:00
|
|
|
|
|
|
|
.PHONY: html-single single-dir
|
|
|
|
html-single: xsltproc.sh xmllint.sh single-dir $(addprefix html-single-,$(SUBDIRS))
|
|
|
|
single-dir:
|
2004-01-24 22:31:11 +00:00
|
|
|
test -d $(HTML_SINGLE) || mkdir $(HTML_SINGLE)
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2003-10-20 09:56:48 +00:00
|
|
|
.PHONY: clean-html-chunked
|
2003-10-21 01:36:00 +00:00
|
|
|
clean-html-chunked:
|
2004-01-24 22:31:11 +00:00
|
|
|
-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:
|
2004-01-24 22:31:11 +00:00
|
|
|
-rm -rf $(HTML_SINGLE)
|
2003-10-20 09:56:48 +00:00
|
|
|
|
2003-03-23 23:26:55 +00:00
|
|
|
.PHONY: distclean
|
2004-01-29 23:23:01 +00:00
|
|
|
distclean: clean-html-chunked clean-html-single $(addprefix distclean-,$(SUBDIRS))
|
2004-01-24 22:31:11 +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:
|
2004-01-24 22:31:11 +00:00
|
|
|
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
|
2004-01-29 23:23:01 +00:00
|
|
|
|
|
|
|
define lang-def
|
|
|
|
.PHONY: html-chunked-$(1) html-single-$(1) distclean-$(1)
|
|
|
|
html-chunked-$(1): xsltproc.sh xmllint.sh chunked-dir
|
|
|
|
(test -d $(HTML_CHUNKED)/$(1) || mkdir $(HTML_CHUNKED)/$(1))
|
|
|
|
$(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) html-chunked
|
|
|
|
|
|
|
|
html-single-$(1): xsltproc.sh xmllint.sh single-dir
|
|
|
|
(test -d $(HTML_SINGLE)/$(1) || mkdir $(HTML_SINGLE)/$(1))
|
|
|
|
$(MAKE) HTMLFILE=../$(HTML_SINGLE)/$(1)/MPlayer.html -C $(1) html-single
|
|
|
|
|
|
|
|
distclean-$(1):
|
|
|
|
-rm -rf $(HTML_SINGLE)/$(1) $(HTML_CHUNKED)/$(1)
|
|
|
|
$(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) distclean
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach lang, $(SUBDIRS),$(eval $(call lang-def,$(lang))))
|