# HG changeset patch # User diego # Date 1067386758 0 # Node ID 4e0e3ba551997e3fa3b5f7774999445ef7bee1e4 # Parent fa738ed513f9dec1afc571e6fd3406a90bbb8f67 Linebreaks added for improved readability, long lines in error message broken, unnecessary code commented out. diff -r fa738ed513f9 -r 4e0e3ba55199 DOCS/xml/Makefile.inc --- 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