[MPlayer-DOCS] CVS: main/DOCS/xml Makefile.inc,1.7,1.8
Diego Biurrun CVS
diego at mplayerhq.hu
Wed Oct 29 01:19:21 CET 2003
Update of /cvsroot/mplayer/main/DOCS/xml
In directory mail:/var/tmp.root/cvs-serv20100
Modified Files:
Makefile.inc
Log Message:
Linebreaks added for improved readability, long lines in error message
broken, unnecessary code commented out.
Index: Makefile.inc
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/xml/Makefile.inc,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Makefile.inc 21 Oct 2003 11:07:02 -0000 1.7
+++ Makefile.inc 29 Oct 2003 00:19:18 -0000 1.8
@@ -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
More information about the MPlayer-DOCS
mailing list