1 Return-Path: <too@guru-group.fi>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 4EBD7431FDE
\r
6 for <notmuch@notmuchmail.org>; Sun, 3 Nov 2013 06:05:52 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id rEsFLcWyc5ma for <notmuch@notmuchmail.org>;
\r
16 Sun, 3 Nov 2013 06:05:47 -0800 (PST)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 7376E431FDD
\r
19 for <notmuch@notmuchmail.org>; Sun, 3 Nov 2013 06:05:47 -0800 (PST)
\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)
\r
21 id 8DB201000E0; Sun, 3 Nov 2013 16:05:37 +0200 (EET)
\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
23 To: notmuch@notmuchmail.org
\r
24 Subject: [PATCH 1/1] build: remove trailing '/.' when doing mkdir -p .deps/.
\r
25 Date: Sun, 3 Nov 2013 16:05:35 +0200
\r
26 Message-Id: <1383487535-21597-1-git-send-email-tomi.ollila@iki.fi>
\r
27 X-Mailer: git-send-email 1.8.0
\r
28 Cc: tomi.ollila@iki.fi
\r
29 X-BeenThere: notmuch@notmuchmail.org
\r
30 X-Mailman-Version: 2.1.13
\r
32 List-Id: "Use and development of the notmuch mail system."
\r
33 <notmuch.notmuchmail.org>
\r
34 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
35 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
36 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
37 List-Post: <mailto:notmuch@notmuchmail.org>
\r
38 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
39 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
40 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
41 X-List-Received-Date: Sun, 03 Nov 2013 14:05:52 -0000
\r
43 When make variable $@ does not contain directory part, $(@D)
\r
44 resolves as '.'. In this case .deps/$(@D) is '.deps/.'
\r
45 In some systems `mkdir [-p] directory/.` fails.
\r
46 To make this compatible with more system substitute trailing
\r
47 '/.' (slashdot) with '' (empty string) whenever it occurs there.
\r
49 Makefile.local | 4 ++--
\r
50 1 file changed, 2 insertions(+), 2 deletions(-)
\r
52 diff --git a/Makefile.local b/Makefile.local
\r
53 index 72524eb..c85e09c 100644
\r
54 --- a/Makefile.local
\r
55 +++ b/Makefile.local
\r
56 @@ -236,11 +236,11 @@ endif
\r
57 quiet ?= $($(shell echo $1 | sed -e s'/ .*//'))
\r
59 %.o: %.cc $(global_deps)
\r
60 - @mkdir -p .deps/$(@D)
\r
61 + @mkdir -p $(patsubst %/.,%,.deps/$(@D))
\r
62 $(call quiet,CXX $(CPPFLAGS) $(CXXFLAGS)) -c $(FINAL_CXXFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d
\r
64 %.o: %.c $(global_deps)
\r
65 - @mkdir -p .deps/$(@D)
\r
66 + @mkdir -p $(patsubst %/.,%,.deps/$(@D))
\r
67 $(call quiet,CC $(CPPFLAGS) $(CFLAGS)) -c $(FINAL_CFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d
\r