[MPlayer-DOCS] CVS: main/DOCS/xml Makefile.inc,1.14,1.15

Diego Biurrun CVS diego at mplayerhq.hu
Fri Jan 30 09:40:49 CET 2004


Update of /cvsroot/mplayer/main/DOCS/xml
In directory mail:/var2/tmp/cvs-serv15056

Modified Files:
	Makefile.inc 
Log Message:
Simplifications and bug fixes by Torinthiel.


Index: Makefile.inc
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/xml/Makefile.inc,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- Makefile.inc	24 Jan 2004 22:31:11 -0000	1.14
+++ Makefile.inc	30 Jan 2004 08:40:47 -0000	1.15
@@ -4,13 +4,15 @@
 
 # Use customized html-chunk.xsl and/or html-single.xsl file if they exist...
 # Also add html-common.xsl to depends if it exists.
-ifeq (html-chunk.xsl,$(wildcard html-chunk.xsl))
-HTML_CHUNK_XSL := html-chunk.xsl
 ifeq (html-common.xsl,$(wildcard html-common.xsl))
-CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) html-common.xsl ../html-chunk.xsl ../html-common.xsl
+COMMON_XSL_DEPS := html-common.xsl ../html-common.xsl
 else
-CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-chunk.xsl ../html-common.xsl
+COMMON_XSL_DEPS := ../html-common.xsl
 endif
+
+ifeq (html-chunk.xsl,$(wildcard html-chunk.xsl))
+HTML_CHUNK_XSL := html-chunk.xsl
+CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-chunk.xsl $(COMMON_XSL_DEPS)
 else
 HTML_CHUNK_XSL := ../html-chunk.xsl
 CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-common.xsl
@@ -18,11 +20,7 @@
 
 ifeq (html-single.xsl,$(wildcard html-single.xsl))
 HTML_SINGLE_XSL := html-single.xsl
-ifeq (html-common.xsl,$(wildcard html-common.xsl))
-XSL_DEPS := $(HTML_SINGLE_XSL) html-common.xsl ../html-single.xsl ../html-common.xsl
-else
-XSL_DEPS := $(HTML_SINGLE_XSL) ../html-single.xsl ../html-common.xsl
-endif
+XSL_DEPS := $(HTML_SINGLE_XSL) ../html-single.xsl $(COMMON_XSL_DEPS)
 else
 HTML_SINGLE_XSL := ../html-single.xsl
 XSL_DEPS := $(HTML_SINGLE_XSL) ../html-common.xsl
@@ -32,17 +30,18 @@
 HTML_STYLESHEET ?= ../default.css
 
 # This is the main target...
+.PHONY: all html-chunked html-single
 all: html-chunked html-single
 html-chunked: $(HTMLDIR)/index.html
 html-single: $(HTMLFILE)
 
 $(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS)
-	if test "$(HTMLDIR)" = "" ; then \
-		echo "Error: HTMLDIR not set!!!"; \
-		echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \
-		echo "Don't do this!"; \
-		false; \
-	fi
+ifndef HTMLDIR
+	$(warning $(HTMLDIR))
+	$(warning Error: HTMLDIR not set!!!)
+	$(warning Typically this means, that you've run make from a subdir of DOCS/xml.)
+	$(error Don't do this!)
+endif
 	if test "$(USE_SYMLINKS)" = "yes" ; then \
 		for file in ../en/*.xml ; do \
 		if ! test -r `basename $$file` ; then \
@@ -56,12 +55,11 @@
 	../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
 
 $(HTMLFILE): main.xml $(XSL_DEPS)
-	if test "$(HTMLFILE)" = "" ; then \
-		echo "Error: HTMLFILE not set!!!"; \
-		echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \
-		echo "Don't do this!"; \
-		false; \
-	fi
+ifndef HTMLFILE
+	$(warning Error: HTMLFILE not set!!!)
+	$(warning Typically this means, that you've run make from a subdir of DOCS/xml.)
+	$(error Don't do this!)
+endif
 	if test "$(USE_SYMLINKS)" = "yes" ; then \
 		for file in ../en/*.xml ; do \
 		if ! test -r `basename $$file` ; then \




More information about the MPlayer-DOCS mailing list