summaryrefslogtreecommitdiffstats
path: root/DOCS/xml/Makefile.inc
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-29 00:19:18 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-29 00:19:18 +0000
commit7f91703568ff2925538c30cec64bf5b13ded0aec (patch)
treea638b5e5f836d5ea70e91f464a9ead6ca39d9613 /DOCS/xml/Makefile.inc
parent7931d804f16fb57cd30c828b828201ee04e9e959 (diff)
downloadmpv-7f91703568ff2925538c30cec64bf5b13ded0aec.tar.bz2
mpv-7f91703568ff2925538c30cec64bf5b13ded0aec.tar.xz
Linebreaks added for improved readability, long lines in error message
broken, unnecessary code commented out. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11311 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS/xml/Makefile.inc')
-rw-r--r--DOCS/xml/Makefile.inc42
1 files changed, 35 insertions, 7 deletions
diff --git a/DOCS/xml/Makefile.inc b/DOCS/xml/Makefile.inc
index c451fb1d47..8d767df254 100644
--- a/DOCS/xml/Makefile.inc
+++ b/DOCS/xml/Makefile.inc
@@ -37,23 +37,51 @@ html-chunked: $(HTMLDIR)/index.html
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