2003-03-23 23:26:55 +00:00
|
|
|
# Makefile for generating the HTML documentation
|
|
|
|
|
|
|
|
# List of subdirectories to be processed.
|
2005-01-06 12:46:23 +00:00
|
|
|
SUBDIRS = en es fr hu pl ru cs
|
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."
|
2005-04-11 20:14:08 +00:00
|
|
|
@echo "xmllint : Check syntax of all xml files."
|
2005-04-12 11:01:10 +00:00
|
|
|
@echo "xmllint-LANG : Check syntax of LANG xml 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."
|
2005-04-10 16:26:51 +00:00
|
|
|
@echo "releaseclean : Remove generated files but keep the HTML."
|
2003-10-20 09:56:48 +00:00
|
|
|
@echo "distclean : Remove ALL generated files."
|
2005-04-15 23:23:43 +00:00
|
|
|
@echo "clean-LANG : Remove HTML files for one language."
|
|
|
|
@echo "releaseclean-LANG : Remove generated files for one language."
|
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
|
|
|
|
2005-04-11 20:14:08 +00:00
|
|
|
.PHONY: xmllint
|
|
|
|
xmllint: xmllint.sh $(addprefix xmllint-,$(SUBDIRS))
|
|
|
|
|
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
|
|
|
|
2005-04-11 20:14:08 +00:00
|
|
|
.PHONY: releaseclean distclean clean
|
2005-04-15 23:23:43 +00:00
|
|
|
releaseclean: $(addprefix releaseclean-,$(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
|
|
|
|
2005-04-10 16:26:51 +00:00
|
|
|
distclean: clean releaseclean
|
|
|
|
|
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
|
2005-04-15 23:23:43 +00:00
|
|
|
.PHONY: html-chunked-$(1) html-single-$(1) xmllint-$(1) \
|
|
|
|
distclean-$(1) releaseclean-$(1) clean-$(1)
|
2004-01-29 23:23:01 +00:00
|
|
|
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
|
|
|
|
|
2005-04-11 20:14:08 +00:00
|
|
|
xmllint-$(1): xmllint.sh
|
|
|
|
$(MAKE) HTMLFILE=../$(HTML_SINGLE)/$(1)/MPlayer.html -C $(1) xmllint
|
|
|
|
|
2005-04-15 23:23:43 +00:00
|
|
|
distclean-$(1): clean-$(1) releaseclean-$(1)
|
|
|
|
|
|
|
|
clean-$(1):
|
2004-01-29 23:23:01 +00:00
|
|
|
-rm -rf $(HTML_SINGLE)/$(1) $(HTML_CHUNKED)/$(1)
|
2005-04-15 23:23:43 +00:00
|
|
|
|
|
|
|
releaseclean-$(1):
|
2004-01-29 23:23:01 +00:00
|
|
|
$(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) distclean
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach lang, $(SUBDIRS),$(eval $(call lang-def,$(lang))))
|