2003-03-23 23:26:55 +00:00
|
|
|
#
|
2003-06-18 17:37:36 +00:00
|
|
|
# Makefile.inc for Makefiles in subdirectories.
|
2003-03-23 23:26:55 +00:00
|
|
|
#
|
|
|
|
|
2003-10-20 09:56:48 +00:00
|
|
|
HTML_CHUNK_XSL := ../html-chunk.xsl
|
|
|
|
CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-common.xsl
|
|
|
|
|
2003-10-21 11:07:02 +00:00
|
|
|
HTML_SINGLE_XSL := ../html-single.xsl
|
2009-12-14 02:25:40 +00:00
|
|
|
SINGLE_XSL_DEPS := $(HTML_SINGLE_XSL) ../html-common.xsl
|
2003-10-21 11:07:02 +00:00
|
|
|
|
2003-03-23 23:26:55 +00:00
|
|
|
# This is the main target...
|
2003-10-21 11:07:02 +00:00
|
|
|
all: html-chunked html-single
|
2003-10-20 09:56:48 +00:00
|
|
|
html-chunked: $(HTMLDIR)/index.html
|
2009-12-14 00:16:32 +00:00
|
|
|
html-single: $(HTMLDIR)/MPlayer.html
|
2003-10-20 09:56:48 +00:00
|
|
|
|
2009-12-14 12:03:02 +00:00
|
|
|
SYMLINKS_DEPS := $(filter-out $(wildcard *.xml),$(notdir $(wildcard ../en/*.xml)))
|
2004-08-08 18:23:04 +00:00
|
|
|
|
2005-04-11 20:14:08 +00:00
|
|
|
xmllint: main.xml $(SYMLINKS_DEPS)
|
|
|
|
../xmllint.sh $<
|
|
|
|
|
2009-12-14 00:42:46 +00:00
|
|
|
$(HTMLDIR)/default.css:
|
2009-12-14 01:51:42 +00:00
|
|
|
cp -f ../default.css $(@D)
|
2009-12-14 00:42:46 +00:00
|
|
|
|
|
|
|
$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) $(SYMLINKS_DEPS) xmllint $(HTMLDIR)/default.css
|
2004-01-24 22:31:11 +00:00
|
|
|
../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
|
2003-10-20 09:56:48 +00:00
|
|
|
|
2009-12-14 02:25:40 +00:00
|
|
|
$(HTMLDIR)/MPlayer.html: main.xml $(SINGLE_XSL_DEPS) $(SYMLINKS_DEPS) xmllint $(HTMLDIR)/default.css
|
2009-12-13 12:38:16 +00:00
|
|
|
../xsltproc.sh $@ $(HTML_SINGLE_XSL) $<
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2004-01-20 23:27:25 +00:00
|
|
|
../html-chunk.xsl ../html-single.xsl main.xml:
|
2003-10-30 12:10:09 +00:00
|
|
|
cd .. && sh configure
|
2003-10-08 02:00:59 +00:00
|
|
|
|
2009-12-14 03:43:54 +00:00
|
|
|
$(SYMLINKS_DEPS):
|
2009-12-14 12:03:02 +00:00
|
|
|
ln -s ../en/$@ $@
|
2004-01-30 11:40:54 +00:00
|
|
|
|
2009-01-05 00:04:34 +00:00
|
|
|
.PHONY: all html-chunked html-single xmllint
|