Show
Ignore:
Timestamp:
10/13/09 17:26:18 (10 months ago)
Author:
tfheen
Message:

Skip building documentation when we lack xsltproc

Previously, trying to build from SVN without xsltproc installed would
get you errors like:

--xinclude -o changes-2.0.1.html changes-2.0.1.xml
--xinclude:No such file or directory

which is quite confusing.

We now rather just skip the docs completely if we can't find any
xsltproc. If we actually do need to rebuild the docs (which should
only happen when running make dist), we error out with a useful error
message.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/varnish-cache/doc/Makefile.am

    r3327 r4330  
    1818        ${CHANGELOGS:.html=.xml} 
    1919 
     20if HAVE_XSLTPROC 
    2021all: ${CHANGELOGS} 
     22endif 
    2123 
    2224EXTRA_DIST = ${CHANGELOGS} ${XML} \ 
     
    2527 
    2628CLEANFILES = ${CHANGELOGS} 
    27  
    2829SUFFIXES = .xml .html 
    2930 
    3031.xml.html: 
     32if HAVE_XSLTPROC 
    3133        ${XSLTPROC} --xinclude -o $@ $< 
     34else 
     35        @echo "========================================" 
     36        @echo "You need xsltproc installed to make dist" 
     37        @echo "========================================" 
     38        @false 
     39endif 
    3240 
    3341${CHANGELOGS}: changes-html.xsl 
     42