From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: [PATCH] build: Fix out-of-tree building of documentation. Date: Sat, 09 Jan 2016 16:30:12 +0100 Message-ID: <87fuy6ydmj.fsf@T420.taylan> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHvSk-0003MA-0w for guix-devel@gnu.org; Sat, 09 Jan 2016 10:29:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHvSh-0006Hm-9a for guix-devel@gnu.org; Sat, 09 Jan 2016 10:29:53 -0500 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:32868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHvSh-0006HG-3N for guix-devel@gnu.org; Sat, 09 Jan 2016 10:29:51 -0500 Received: by mail-wm0-x22d.google.com with SMTP id f206so167227504wmf.0 for ; Sat, 09 Jan 2016 07:29:50 -0800 (PST) Received: from T420.taylan ([2a02:908:c32:de0:221:ccff:fe66:68f0]) by smtp.gmail.com with ESMTPSA id g187sm4182304wmf.8.2016.01.09.07.29.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jan 2016 07:29:48 -0800 (PST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/plain While working on my other patch I noticed we already have some issues with out-of-tree builds. Resolved by this patch. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-build-Fix-out-of-tree-building-of-documentation.patch >From 41650754511487f5f1f937317eebd80c19ca8bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?= Date: Sat, 9 Jan 2016 15:56:23 +0100 Subject: [PATCH] build: Fix out-of-tree building of documentation. * doc.am (.dot.png, .dot.pdf, .dot.eps, .png.eps): Create the directory for each target in case of out-of-tree building. --- doc.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc.am b/doc.am index e3a91cc..04a74a9 100644 --- a/doc.am +++ b/doc.am @@ -65,18 +65,22 @@ DOT_OPTIONS = \ -Nfontsize=9 -Nheight=.1 -Nwidth=.1 .dot.png: + $(MKDIR_P) `dirname "$@"` $(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$@.tmp" mv "$@.tmp" "$@" .dot.pdf: + $(MKDIR_P) `dirname "$@"` $(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$@.tmp" mv "$@.tmp" "$@" .dot.eps: + $(MKDIR_P) `dirname "$@"` $(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$@.tmp" mv "$@.tmp" "$@" .png.eps: + $(MKDIR_P) `dirname "$@"` convert "$<" "$@-tmp.eps" mv "$@-tmp.eps" "$@" -- 2.6.3 --=-=-=--