changeset 11310:4e0e3ba55199

Linebreaks added for improved readability, long lines in error message broken, unnecessary code commented out.
author diego
date Wed, 29 Oct 2003 00:19:18 +0000
parents fa738ed513f9
children 92b8eae72aca
files DOCS/xml/Makefile.inc
diffstat 1 files changed, 35 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/xml/Makefile.inc	Tue Oct 28 22:36:56 2003 +0000
+++ b/DOCS/xml/Makefile.inc	Wed Oct 29 00:19:18 2003 +0000
@@ -37,23 +37,51 @@
 html-single: $(HTMLFILE)
 
 $(HTMLDIR)/index.html: documentation.xml $(CHUNK_XSL_DEPS)
-	@if test "$(HTMLDIR)" = "" ; then echo "Error: HTMLDIR not set!!!"; echo "Typically this means, that you've run make from subdir of DOCS/xml. Don't do this!" ; false; fi
-	if test "$(USE_SYMLINKS)" = "yes" ; then for file in ../en/*.xml ; do if ! test -r `basename $$file` ; then ln -s $$file `basename $$file` ; fi ; done ; fi
+	@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
+	if test "$(USE_SYMLINKS)" = "yes" ; then \
+		for file in ../en/*.xml ; do \
+		if ! test -r `basename $$file` ; then \
+			ln -s $$file `basename $$file` ; \
+		fi ; \
+		done ; \
+	fi
 	-rm -f $(HTMLDIR)/*
 	../xmllint.sh $<
 	cp $(HTML_STYLESHEET) $(HTMLDIR)/
 	../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
 
 $(HTMLFILE): documentation.xml $(XSL_DEPS)
-	@if test "$(HTMLFILE)" = "" ; then echo "Error: HTMLFILE not set!!!"; echo "Typically this means, that you've run make from subdir of DOCS/xml. Don't do this!" ; false; fi
-	if test "$(USE_SYMLINKS)" = "yes" ; then for file in ../en/*.xml ; do if ! test -r `basename $$file` ; then ln -s $$file `basename $$file` ; fi ; done ; fi
+	@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
+	if test "$(USE_SYMLINKS)" = "yes" ; then \
+		for file in ../en/*.xml ; do \
+		if ! test -r `basename $$file` ; then \
+			ln -s $$file `basename $$file` ; \
+		fi ; \
+		done ; \
+	fi
 	-rm -f $(HTMLFILE)
 	../xmllint.sh $<
 	cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)`
 	../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $<
 
-../html-single.xsl:
-	cd .. && sh configure
+#../html-single.xsl:
+#	cd .. && sh configure
 
 distclean:
-	if test "$(USE_SYMLINKS)" = "yes" ; then for file in *.xml ; do if test -L $$file && test "`readlink $$file`" = "../en/$$file" ; then rm $$file ; fi ; done ; fi
+	if test "$(USE_SYMLINKS)" = "yes" ; then \
+		for file in *.xml ; do \
+		if test -L $$file && test "`readlink $$file`" = "../en/$$file" ; then \
+			rm $$file ; \
+		fi ; \
+		done ; \
+	fi