diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-08-19 10:30:47 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-08-19 10:32:14 +0200 |
commit | 842ac79407a1368308beff230d3e83aad6d82b75 (patch) | |
tree | 259b9e9b6c637e6ec569ea13b0ac659e71152fe2 | |
parent | 328c3f6f96a4d7cdc368264a97d03c9b75ad54ea (diff) | |
download | postgresql-842ac79407a1368308beff230d3e83aad6d82b75.tar.gz postgresql-842ac79407a1368308beff230d3e83aad6d82b75.zip |
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.
-rw-r--r-- | doc/src/sgml/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index 05dc51ace85..0401a515df8 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 $@ |