mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
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.
This commit is contained in:
parent
71851e9ab7
commit
a407012c07
@ -164,13 +164,15 @@ postgres.txt: postgres.html
|
|||||||
postgres.pdf:
|
postgres.pdf:
|
||||||
$(error Invalid target; use postgres-A4.pdf or postgres-US.pdf as targets)
|
$(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)
|
%-A4.fo: stylesheet-fo.xsl %.sgml $(ALLSGML)
|
||||||
$(XMLLINT) $(XMLINCLUDE) --noout --valid $(word 2,$^)
|
$(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)
|
%-US.fo: stylesheet-fo.xsl %.sgml $(ALLSGML)
|
||||||
$(XMLLINT) $(XMLINCLUDE) --noout --valid $(word 2,$^)
|
$(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)
|
%.pdf: %.fo $(ALL_IMAGES)
|
||||||
$(FOP) -fo $< -pdf $@
|
$(FOP) -fo $< -pdf $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user