https://bugs.kde.org/show_bug.cgi?id=445211

--- Comment #12 from Mark Wielaard <m...@klomp.org> ---
So we were missing a few more search path, but the following seems to make
document generation work again with srcdir != builddir

--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -124,11 +124,12 @@ LOGFILE = print.log

 # validation stuff
 XMLLINT       = xmllint
-XMLLINT_FLAGS = --noblanks --noout --xinclude --postvalid --noent
+XMLLINT_FLAGS = --noblanks --noout --xinclude --postvalid --noent \
+               --path $(top_builddir)/docs/xml

 # stylesheet processor
 XSLTPROC       = xsltproc
-XSLTPROC_FLAGS = --nonet --xinclude
+XSLTPROC_FLAGS = --nonet --xinclude --path $(top_builddir)/docs/xml

 # stylesheets
 XSL_HTML_CHUNK_STYLE  = $(mylibdir)/vg-html-chunk.xsl
@@ -238,7 +239,8 @@ print-docs:
        cp $(myimgdir)/*.png $(myprintdir)/images && \
        xmlto -v $(WITH_FOP) --stringparam=keep.relative.image.uris="1" \
              -x $(XSL_FO_STYLE) \
-             --searchpath print pdf $(myxmldir)/index.xml &> $(LOGFILE) && \
+             --searchpath $(top_builddir)/docs/xml:print \
+             pdf $(myxmldir)/index.xml &> $(LOGFILE) && \
        echo "Generating PS file: $(myprintdir)/index.ps ..." && \
        pdftops index.pdf && \
        mv index.pdf index.ps $(myprintdir) && \
@@ -353,7 +355,8 @@ download-docs:
        cp $(myimgdir)/*.png $(vgdir)/print/images/
        xmlto -v $(WITH_FOP) --stringparam=keep.relative.image.uris="1" \
              -x $(XSL_FO_STYLE) \
-             --searchpath print pdf $(myxmldir)/index.xml &> $(LOGFILE)
+             --searchpath $(top_builddir)/docs/xml:print \
+             pdf $(myxmldir)/index.xml &> $(LOGFILE)
        mv index.pdf $(vgdir)/print/manual.pdf
        @echo ""
        @echo "Generating valgrind_manual.ps.bz2 ..."

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to