2003-03-23 23:26:55 +00:00
|
|
|
# Makefile for generating the HTML documentation
|
|
|
|
|
2008-07-19 02:00:56 +00:00
|
|
|
include ../../config.mak
|
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
|
|
|
|
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
|
|
|
help:
|
|
|
|
@echo "Targets:"
|
|
|
|
@echo "********"
|
2008-07-19 02:00:56 +00:00
|
|
|
@echo "all : Build everything for configured languages (default)."
|
|
|
|
@echo "html-single : HTML documentation for configured languages (single file)"
|
2004-01-29 23:23:01 +00:00
|
|
|
@echo "html-single-LANG : As above, but only one language."
|
2008-07-19 02:00:56 +00:00
|
|
|
@echo "html-chunked : HTML documentation for configured languages (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."
|
2008-07-19 02:00:56 +00:00
|
|
|
@echo "Substitute LANG for one of $(DOC_LANG_ALL)"
|
2003-10-20 09:56:48 +00:00
|
|
|
|
2008-07-19 02:00:56 +00:00
|
|
|
html-chunked: xsltproc.sh xmllint.sh chunked-dir $(addprefix html-chunked-,$(DOC_LANGS))
|
2004-01-29 23:23:01 +00:00
|
|
|
chunked-dir:
|
2006-10-22 17:04:26 +00:00
|
|
|
-mkdir -p $(HTML_CHUNKED)
|
2004-01-29 23:23:01 +00:00
|
|
|
|
2008-07-19 02:00:56 +00:00
|
|
|
html-single: xsltproc.sh xmllint.sh single-dir $(addprefix html-single-,$(DOC_LANGS))
|
2004-01-29 23:23:01 +00:00
|
|
|
single-dir:
|
2006-10-22 17:04:26 +00:00
|
|
|
-mkdir -p $(HTML_SINGLE)
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2008-07-19 02:00:56 +00:00
|
|
|
xmllint: xmllint.sh $(addprefix xmllint-,$(DOC_LANG_ALL))
|
2005-04-11 20:14:08 +00:00
|
|
|
|
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
|
|
|
clean-html-single:
|
2004-01-24 22:31:11 +00:00
|
|
|
-rm -rf $(HTML_SINGLE)
|
2003-10-20 09:56:48 +00:00
|
|
|
|
2008-07-19 02:00:56 +00:00
|
|
|
releaseclean: $(addprefix releaseclean-,$(DOC_LANG_ALL))
|
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
|
|
|
|
html-chunked-$(1): xsltproc.sh xmllint.sh chunked-dir
|
2006-10-22 17:04:26 +00:00
|
|
|
-(mkdir -p $(HTML_CHUNKED)/$(1))
|
2004-01-29 23:23:01 +00:00
|
|
|
$(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) html-chunked
|
|
|
|
|
|
|
|
html-single-$(1): xsltproc.sh xmllint.sh single-dir
|
2006-10-22 17:04:26 +00:00
|
|
|
-(mkdir -p $(HTML_SINGLE)/$(1))
|
2004-01-29 23:23:01 +00:00
|
|
|
$(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
|
|
|
|
|
2008-07-19 02:00:56 +00:00
|
|
|
$(foreach lang, $(DOC_LANG_ALL),$(eval $(call lang-def,$(lang))))
|
2007-03-07 12:41:03 +00:00
|
|
|
|
2009-01-04 23:27:03 +00:00
|
|
|
.PHONY: all help html-chunked* chunked-dir html-single* single-dir xmllint* *clean*
|