changeset 29973:113ab3d1feab

Factorize stylesheet installation into its own target.
author diego
date Mon, 14 Dec 2009 00:42:46 +0000
parents 03e8eec6e104
children f5dc9e815865
files DOCS/xml/Makefile.inc
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/xml/Makefile.inc	Mon Dec 14 00:16:32 2009 +0000
+++ b/DOCS/xml/Makefile.inc	Mon Dec 14 00:42:46 2009 +0000
@@ -35,12 +35,13 @@
 xmllint: main.xml $(SYMLINKS_DEPS)
 	../xmllint.sh $<
 
-$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) $(SYMLINKS_DEPS) xmllint
-	cp -f $(HTML_STYLESHEET) $(@D)
+$(HTMLDIR)/default.css:
+	cp -f ../default.css $(@D)
+
+$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) $(SYMLINKS_DEPS) xmllint $(HTMLDIR)/default.css
 	../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
 
-$(HTMLDIR)/MPlayer.html: main.xml $(XSL_DEPS) $(SYMLINKS_DEPS) xmllint
-	cp -f $(HTML_STYLESHEET) $(@D)
+$(HTMLDIR)/MPlayer.html: main.xml $(XSL_DEPS) $(SYMLINKS_DEPS) xmllint $(HTMLDIR)/default.css
 	../xsltproc.sh $@ $(HTML_SINGLE_XSL) $<
 
 ../html-chunk.xsl ../html-single.xsl main.xml: