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
|
|
|
|
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)
|
2009-12-14 02:39:22 +00:00
|
|
|
CONFIGURE_GENERATED = html-chunk.xsl html-single.xsl xsltproc.sh xmllint.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-05-11 21:21:45 +00:00
|
|
|
html-chunked-$(lang): $(HTML)/$(lang)/index.html
|
|
|
|
html-single-$(lang): $(HTML)/$(lang)/MPlayer.html
|
2010-05-11 21:31:36 +00:00
|
|
|
$(HTML)/$(lang)/index.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-05-11 13:13:32 +00:00
|
|
|
$(HTML)/$(lang)/index.html:
|
|
|
|
./xsltproc.sh $$(@D)/ 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 $$<
|
|
|
|
|
|
|
|
xmllint-$(lang): $(lang)/main.xml
|
|
|
|
./xmllint.sh $$<
|
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
|