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
|
2010-06-23 12:07:29 +00:00
|
|
|
include xml.mak
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2009-12-13 22:51:55 +00:00
|
|
|
# Generated HTML files go here.
|
|
|
|
HTML = ../HTML
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2009-12-13 23:59:10 +00:00
|
|
|
MAIN_XML_ALL = $(foreach lang,$(DOC_LANG_ALL),$(lang)/main.xml)
|
2010-06-23 12:07:29 +00:00
|
|
|
CONFIGURE_GENERATED = html-chunk.xsl html-single.xsl xml.mak xsltproc.sh
|
2009-12-13 23:59:10 +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."
|
2009-12-14 03:14:21 +00:00
|
|
|
@echo "xmllint : Check syntax of XML files for configured languages."
|
2009-12-14 03:01:40 +00:00
|
|
|
@echo "xmllint-LANG : Check syntax of LANG XML files."
|
2009-12-13 22:51:55 +00:00
|
|
|
@echo "clean : Purge the 'HTML' directory."
|
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-12-13 22:43:37 +00:00
|
|
|
html-chunked: $(addprefix html-chunked-,$(DOC_LANGS))
|
|
|
|
html-single: $(addprefix html-single-,$(DOC_LANGS))
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2009-12-14 03:14:21 +00:00
|
|
|
xmllint: $(addprefix xmllint-,$(DOC_LANGS))
|
2005-04-11 20:14:08 +00:00
|
|
|
|
2009-12-14 02:40:55 +00:00
|
|
|
$(CONFIGURE_GENERATED) $(MAIN_XML_ALL):
|
2010-05-11 21:33:15 +00:00
|
|
|
./configure
|
2003-10-09 21:21:31 +00:00
|
|
|
|
2004-01-29 23:23:01 +00:00
|
|
|
define lang-def
|
2010-06-23 13:24:53 +00:00
|
|
|
html-chunked-$(lang): $(HTML)/$(lang)/dummy.html
|
2010-05-11 21:21:45 +00:00
|
|
|
html-single-$(lang): $(HTML)/$(lang)/MPlayer.html
|
2010-06-23 13:24:53 +00:00
|
|
|
$(HTML)/$(lang)/dummy.html $(HTML)/$(lang)/MPlayer.html: $(lang)/main.xml $(wildcard $(lang)/*.xml) html-common.xsl $(HTML)/$(lang)/default.css
|
2009-12-14 03:07:35 +00:00
|
|
|
|
2010-05-11 21:31:36 +00:00
|
|
|
$(HTML)/$(lang)/default.css:
|
2010-05-11 22:31:47 +00:00
|
|
|
mkdir -p $$(@D)
|
2010-05-11 13:13:32 +00:00
|
|
|
cp -f default.css $$(@D)
|
2004-01-29 23:23:01 +00:00
|
|
|
|
2010-06-23 13:24:53 +00:00
|
|
|
$(HTML)/$(lang)/dummy.html:
|
|
|
|
./xsltproc.sh $$@ html-chunk.xsl $$<
|
2004-01-29 23:23:01 +00:00
|
|
|
|
2010-05-11 13:13:32 +00:00
|
|
|
$(HTML)/$(lang)/MPlayer.html:
|
|
|
|
./xsltproc.sh $$@ html-single.xsl $$<
|
|
|
|
|
2010-06-23 12:07:29 +00:00
|
|
|
xmllint-$(lang):
|
|
|
|
SGML_CATALOG_FILES=$(CATALOG) $(XMLLINT_COMMAND) $(lang)/main.xml
|
2004-01-29 23:23:01 +00:00
|
|
|
endef
|
|
|
|
|
2009-12-16 11:59:53 +00:00
|
|
|
$(foreach lang, $(DOC_LANG_ALL),$(eval $(lang-def)))
|
2007-03-07 12:41:03 +00:00
|
|
|
|
2009-01-05 00:01:55 +00:00
|
|
|
clean:
|
2009-12-14 03:19:01 +00:00
|
|
|
-rm -rf $(HTML)
|
2009-01-05 00:01:55 +00:00
|
|
|
|
2009-01-05 00:04:34 +00:00
|
|
|
releaseclean:
|
2009-12-14 03:19:01 +00:00
|
|
|
-rm -f $(CONFIGURE_GENERATED)
|
|
|
|
-rm -f $(MAIN_XML_ALL)
|
2009-01-05 00:01:55 +00:00
|
|
|
|
|
|
|
distclean: clean releaseclean
|
|
|
|
|
2009-12-14 03:09:09 +00:00
|
|
|
.PHONY: all help html-chunked html-single xmllint
|
2010-05-11 13:27:13 +00:00
|
|
|
.PHONY: html-chunked-* html-single-* xmllint-* *clean
|