Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a407012

Browse files
committed
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.
1 parent 71851e9 commit a407012

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/src/sgml/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,15 @@ postgres.txt: postgres.html
164164
postgres.pdf:
165165
$(error Invalid target; use postgres-A4.pdf or postgres-US.pdf as targets)
166166

167+
XSLTPROC_FO_FLAGS += --stringparam img.src.path '$(srcdir)/'
168+
167169
%-A4.fo: stylesheet-fo.xsl %.sgml $(ALLSGML)
168170
$(XMLLINT) $(XMLINCLUDE) --noout --valid $(word 2,$^)
169-
$(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) --stringparam paper.type A4 -o $@ $(wordlist 1,2,$^)
171+
$(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) $(XSLTPROC_FO_FLAGS) --stringparam paper.type A4 -o $@ $(wordlist 1,2,$^)
170172

171173
%-US.fo: stylesheet-fo.xsl %.sgml $(ALLSGML)
172174
$(XMLLINT) $(XMLINCLUDE) --noout --valid $(word 2,$^)
173-
$(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) --stringparam paper.type USletter -o $@ $(wordlist 1,2,$^)
175+
$(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) $(XSLTPROC_FO_FLAGS) --stringparam paper.type USletter -o $@ $(wordlist 1,2,$^)
174176

175177
%.pdf: %.fo $(ALL_IMAGES)
176178
$(FOP) -fo $< -pdf $@

0 commit comments

Comments
 (0)