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 13:36:02 +00:00
|
|
|
CONFIGURE_GENERATED = html-chunk.xsl html-single.xsl xml.mak
|
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
|
|
|
|
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:
|
2010-06-23 13:36:02 +00:00
|
|
|
SGML_CATALOG_FILES=$(CATALOG) $(XSLT_COMMAND) $$@ html-chunk.xsl $$<
|
2004-01-29 23:23:01 +00:00
|
|
|
|
2010-05-11 13:13:32 +00:00
|
|
|
$(HTML)/$(lang)/MPlayer.html:
|
2010-06-23 13:36:02 +00:00
|
|
|
SGML_CATALOG_FILES=$(CATALOG) $(XSLT_COMMAND) $$@ html-single.xsl $$<
|
2010-05-11 13:13:32 +00:00
|
|
|
|
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
|
|
|
|
2010-06-28 16:45:47 +00:00
|
|
|
# Remove generated files but keep the HTML (for release tarballs).
|
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
|
|
|
|
|
2010-06-28 16:45:47 +00:00
|
|
|
.PHONY: all html-chunked html-single xmllint
|
2010-05-11 13:27:13 +00:00
|
|
|
.PHONY: html-chunked-* html-single-* xmllint-* *clean
|