From: taylanbayirli@gmail.com (Taylan Ulrich Bayırlı/Kammer)
To: guix-devel@gnu.org
Subject: [PATCH] build: Fix out-of-tree building of documentation.
Date: Sat, 09 Jan 2016 16:30:12 +0100 [thread overview]
Message-ID: <87fuy6ydmj.fsf@T420.taylan> (raw)
[-- Attachment #1: Type: text/plain, Size: 121 bytes --]
While working on my other patch I noticed we already have some issues
with out-of-tree builds. Resolved by this patch.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-build-Fix-out-of-tree-building-of-documentation.patch --]
[-- Type: text/x-diff, Size: 1035 bytes --]
From 41650754511487f5f1f937317eebd80c19ca8bf1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?=
<taylanbayirli@gmail.com>
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
next reply other threads:[~2016-01-09 15:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-09 15:30 Taylan Ulrich Bayırlı/Kammer [this message]
2016-01-09 21:30 ` [PATCH] build: Fix out-of-tree building of documentation Ludovic Courtès
2016-01-10 9:49 ` Taylan Ulrich Bayırlı/Kammer
2016-01-10 10:34 ` Taylan Ulrich Bayırlı/Kammer
2016-01-10 21:03 ` Ludovic Courtès
2016-01-10 21:33 ` Taylan Ulrich Bayırlı/Kammer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fuy6ydmj.fsf@T420.taylan \
--to=taylanbayirli@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).