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 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."
|
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
|
|
|
|
2009-01-04 23:34:38 +00:00
|
|
|
html-chunked: xsltproc.sh xmllint.sh $(HTML_CHUNKED) $(addprefix html-chunked-,$(DOC_LANGS))
|
2004-01-29 23:23:01 +00:00
|
|
|
|
2009-01-04 23:34:38 +00:00
|
|
|
html-single: xsltproc.sh xmllint.sh $(HTML_SINGLE) $(addprefix html-single-,$(DOC_LANGS))
|
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
|
|
|
|
2009-01-04 23:34:38 +00:00
|
|
|
$(HTML_CHUNKED) $(HTML_SINGLE):
|
|
|
|
-mkdir -p $@
|
|
|
|
|
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
|
|
|
|
2004-01-29 23:23:01 +00:00
|
|
|
define lang-def
|
2009-01-04 23:34:38 +00:00
|
|
|
html-chunked-$(1): xsltproc.sh xmllint.sh $(HTML_CHUNKED)
|
2009-01-05 00:08:23 +00:00
|
|
|
-mkdir -p $(HTML_CHUNKED)/$(1)
|
2004-01-29 23:23:01 +00:00
|
|
|
$(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) html-chunked
|
|
|
|
|
2009-01-04 23:34:38 +00:00
|
|
|
html-single-$(1): xsltproc.sh xmllint.sh $(HTML_SINGLE)
|
2009-01-05 00:08:23 +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
|
2004-01-29 23:23:01 +00:00
|
|
|
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-05 00:01:55 +00:00
|
|
|
clean:
|
|
|
|
rm -rf $(HTML_CHUNKED) $(HTML_SINGLE)
|
|
|
|
|
2009-01-05 00:04:34 +00:00
|
|
|
releaseclean:
|
|
|
|
rm -f $(foreach lang,$(DOC_LANG_ALL),$(lang)/main.xml)
|
|
|
|
rm -f $$(find . -name *.xml -type l)
|
2009-01-05 00:07:55 +00:00
|
|
|
rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh
|
2009-01-05 00:01:55 +00:00
|
|
|
|
|
|
|
distclean: clean releaseclean
|
|
|
|
|
2009-01-04 23:34:38 +00:00
|
|
|
.PHONY: all help html-chunked* html-single* xmllint* *clean*
|