From: Peter Eisentraut Date: Mon, 19 Aug 2019 08:30:47 +0000 (+0200) Subject: doc: Fix image use in PDF build with vpath X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a407012c07844b5d81012d6960c4b2ec11d6af9c;p=postgresql doc: Fix image use in PDF build with vpath In a vpath build, we need to point to the source directory to allow FOP to find the images. --- diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index 05dc51ace8..0401a515df 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -164,13 +164,15 @@ postgres.txt: postgres.html postgres.pdf: $(error Invalid target; use postgres-A4.pdf or postgres-US.pdf as targets) +XSLTPROC_FO_FLAGS += --stringparam img.src.path '$(srcdir)/' + %-A4.fo: stylesheet-fo.xsl %.sgml $(ALLSGML) $(XMLLINT) $(XMLINCLUDE) --noout --valid $(word 2,$^) - $(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) --stringparam paper.type A4 -o $@ $(wordlist 1,2,$^) + $(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) $(XSLTPROC_FO_FLAGS) --stringparam paper.type A4 -o $@ $(wordlist 1,2,$^) %-US.fo: stylesheet-fo.xsl %.sgml $(ALLSGML) $(XMLLINT) $(XMLINCLUDE) --noout --valid $(word 2,$^) - $(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) --stringparam paper.type USletter -o $@ $(wordlist 1,2,$^) + $(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) $(XSLTPROC_FO_FLAGS) --stringparam paper.type USletter -o $@ $(wordlist 1,2,$^) %.pdf: %.fo $(ALL_IMAGES) $(FOP) -fo $< -pdf $@