Mercurial > mplayer.hg
comparison DOCS/xml/Makefile.inc @ 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 | e7534574320c |
children | 23192e33fad5 |
comparison
equal
deleted
inserted
replaced
11309:fa738ed513f9 | 11310:4e0e3ba55199 |
---|---|
35 all: html-chunked html-single | 35 all: html-chunked html-single |
36 html-chunked: $(HTMLDIR)/index.html | 36 html-chunked: $(HTMLDIR)/index.html |
37 html-single: $(HTMLFILE) | 37 html-single: $(HTMLFILE) |
38 | 38 |
39 $(HTMLDIR)/index.html: documentation.xml $(CHUNK_XSL_DEPS) | 39 $(HTMLDIR)/index.html: documentation.xml $(CHUNK_XSL_DEPS) |
40 @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 | 40 @if test "$(HTMLDIR)" = "" ; then \ |
41 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 | 41 echo "Error: HTMLDIR not set!!!"; \ |
42 echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \ | |
43 echo "Don't do this!"; \ | |
44 false; \ | |
45 fi | |
46 if test "$(USE_SYMLINKS)" = "yes" ; then \ | |
47 for file in ../en/*.xml ; do \ | |
48 if ! test -r `basename $$file` ; then \ | |
49 ln -s $$file `basename $$file` ; \ | |
50 fi ; \ | |
51 done ; \ | |
52 fi | |
42 -rm -f $(HTMLDIR)/* | 53 -rm -f $(HTMLDIR)/* |
43 ../xmllint.sh $< | 54 ../xmllint.sh $< |
44 cp $(HTML_STYLESHEET) $(HTMLDIR)/ | 55 cp $(HTML_STYLESHEET) $(HTMLDIR)/ |
45 ../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $< | 56 ../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $< |
46 | 57 |
47 $(HTMLFILE): documentation.xml $(XSL_DEPS) | 58 $(HTMLFILE): documentation.xml $(XSL_DEPS) |
48 @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 | 59 @if test "$(HTMLFILE)" = "" ; then \ |
49 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 | 60 echo "Error: HTMLFILE not set!!!"; \ |
61 echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \ | |
62 echo "Don't do this!"; \ | |
63 false; \ | |
64 fi | |
65 if test "$(USE_SYMLINKS)" = "yes" ; then \ | |
66 for file in ../en/*.xml ; do \ | |
67 if ! test -r `basename $$file` ; then \ | |
68 ln -s $$file `basename $$file` ; \ | |
69 fi ; \ | |
70 done ; \ | |
71 fi | |
50 -rm -f $(HTMLFILE) | 72 -rm -f $(HTMLFILE) |
51 ../xmllint.sh $< | 73 ../xmllint.sh $< |
52 cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)` | 74 cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)` |
53 ../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $< | 75 ../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $< |
54 | 76 |
55 ../html-single.xsl: | 77 #../html-single.xsl: |
56 cd .. && sh configure | 78 # cd .. && sh configure |
57 | 79 |
58 distclean: | 80 distclean: |
59 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 | 81 if test "$(USE_SYMLINKS)" = "yes" ; then \ |
82 for file in *.xml ; do \ | |
83 if test -L $$file && test "`readlink $$file`" = "../en/$$file" ; then \ | |
84 rm $$file ; \ | |
85 fi ; \ | |
86 done ; \ | |
87 fi |