From: Masamichi Hosoda <trueroad@trueroad.jp>
Date: Fri, 8 Jan 2016 14:40:55 +0000 (+0900)
Subject: Issue 4729: Fix document building for XeTeX
X-Git-Tag: release/2.19.36-1~24
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a25ed225a877a9eec1212733f8ed9ee65ab7bfb6;p=lilypond.git

Issue 4729: Fix document building for XeTeX

If the documents were built by XeTeX,
XeTeX couldn't find picture/pdf/*.pdf for building essay.pdf.
This commit creates symlink to solve the problem.
In the case of pdfTeX, it does not affect.
---

diff --git a/Documentation/pictures/GNUmakefile b/Documentation/pictures/GNUmakefile
index 131de3e323..ef72775059 100644
--- a/Documentation/pictures/GNUmakefile
+++ b/Documentation/pictures/GNUmakefile
@@ -19,7 +19,7 @@ include $(depth)/make/stepmake.make
 default:
 
 ifeq ($(out),www)
-local-WWW-1: $(OUT_BITMAP_IMAGES) $(OUT_PDF_IMAGES)
+local-WWW-1: $(OUT_BITMAP_IMAGES) $(OUT_PDF_IMAGES) $(outdir)/pdf
 endif
 
 #########
@@ -43,3 +43,5 @@ $(outdir)/%.png: %.eps
 $(outdir)/%.pdf: %.eps
 	gs -dAutoRotatePages=/None -q -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=$@ -dEPSCrop -c .setpdfwrite -f $<
 
+$(outdir)/pdf:
+	ln -sf $(top-src-dir)/Documentation/pictures/pdf $@