comparison DOCS/xml/Makefile.inc @ 11841:67550c3b21a5

Make the build system print everything it does.
author diego
date Sat, 24 Jan 2004 22:31:11 +0000
parents 19919e913e3d
children b09020364bfb
comparison
equal deleted inserted replaced
11840:acef84b653a9 11841:67550c3b21a5
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: main.xml $(CHUNK_XSL_DEPS) 39 $(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS)
40 @if test "$(HTMLDIR)" = "" ; then \ 40 if test "$(HTMLDIR)" = "" ; then \
41 echo "Error: HTMLDIR not set!!!"; \ 41 echo "Error: HTMLDIR not set!!!"; \
42 echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \ 42 echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \
43 echo "Don't do this!"; \ 43 echo "Don't do this!"; \
44 false; \ 44 false; \
45 fi 45 fi
46 @if test "$(USE_SYMLINKS)" = "yes" ; then \ 46 if test "$(USE_SYMLINKS)" = "yes" ; then \
47 for file in ../en/*.xml ; do \ 47 for file in ../en/*.xml ; do \
48 if ! test -r `basename $$file` ; then \ 48 if ! test -r `basename $$file` ; then \
49 ln -s $$file `basename $$file` ; \ 49 ln -s $$file `basename $$file` ; \
50 fi ; \ 50 fi ; \
51 done ; \ 51 done ; \
52 fi 52 fi
53 @-rm -f $(HTMLDIR)/* 53 -rm -f $(HTMLDIR)/*
54 @../xmllint.sh $< 54 ../xmllint.sh $<
55 @cp -f $(HTML_STYLESHEET) $(HTMLDIR)/ 55 cp -f $(HTML_STYLESHEET) $(HTMLDIR)/
56 @../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $< 56 ../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
57 57
58 $(HTMLFILE): main.xml $(XSL_DEPS) 58 $(HTMLFILE): main.xml $(XSL_DEPS)
59 @if test "$(HTMLFILE)" = "" ; then \ 59 if test "$(HTMLFILE)" = "" ; then \
60 echo "Error: HTMLFILE not set!!!"; \ 60 echo "Error: HTMLFILE not set!!!"; \
61 echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \ 61 echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \
62 echo "Don't do this!"; \ 62 echo "Don't do this!"; \
63 false; \ 63 false; \
64 fi 64 fi
65 @if test "$(USE_SYMLINKS)" = "yes" ; then \ 65 if test "$(USE_SYMLINKS)" = "yes" ; then \
66 for file in ../en/*.xml ; do \ 66 for file in ../en/*.xml ; do \
67 if ! test -r `basename $$file` ; then \ 67 if ! test -r `basename $$file` ; then \
68 ln -s $$file `basename $$file` ; \ 68 ln -s $$file `basename $$file` ; \
69 fi ; \ 69 fi ; \
70 done ; \ 70 done ; \
71 fi 71 fi
72 @-rm -f $(HTMLFILE) 72 -rm -f $(HTMLFILE)
73 @../xmllint.sh $< 73 ../xmllint.sh $<
74 @cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)` 74 cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)`
75 @../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $< 75 ../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $<
76 76
77 ../html-chunk.xsl ../html-single.xsl main.xml: 77 ../html-chunk.xsl ../html-single.xsl main.xml:
78 cd .. && sh configure 78 cd .. && sh configure
79 79
80 distclean: 80 distclean:
81 @rm -f main.xml 81 rm -f main.xml
82 @if test "$(USE_SYMLINKS)" = "yes" ; then \ 82 if test "$(USE_SYMLINKS)" = "yes" ; then \
83 rm -f `find *.xml -type l`; \ 83 rm -f `find *.xml -type l`; \
84 fi 84 fi