--- /dev/null
+Return-Path: <too@guru-group.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 4EBD7431FDE\r
+ for <notmuch@notmuchmail.org>; Sun, 3 Nov 2013 06:05:52 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id rEsFLcWyc5ma for <notmuch@notmuchmail.org>;\r
+ Sun, 3 Nov 2013 06:05:47 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by olra.theworths.org (Postfix) with ESMTP id 7376E431FDD\r
+ for <notmuch@notmuchmail.org>; Sun, 3 Nov 2013 06:05:47 -0800 (PST)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id 8DB201000E0; Sun, 3 Nov 2013 16:05:37 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/1] build: remove trailing '/.' when doing mkdir -p .deps/.\r
+Date: Sun, 3 Nov 2013 16:05:35 +0200\r
+Message-Id: <1383487535-21597-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 1.8.0\r
+Cc: tomi.ollila@iki.fi\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 03 Nov 2013 14:05:52 -0000\r
+\r
+When make variable $@ does not contain directory part, $(@D)\r
+resolves as '.'. In this case .deps/$(@D) is '.deps/.'\r
+In some systems `mkdir [-p] directory/.` fails.\r
+To make this compatible with more system substitute trailing\r
+'/.' (slashdot) with '' (empty string) whenever it occurs there.\r
+---\r
+ Makefile.local | 4 ++--\r
+ 1 file changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/Makefile.local b/Makefile.local\r
+index 72524eb..c85e09c 100644\r
+--- a/Makefile.local\r
++++ b/Makefile.local\r
+@@ -236,11 +236,11 @@ endif\r
+ quiet ?= $($(shell echo $1 | sed -e s'/ .*//'))\r
+ \r
+ %.o: %.cc $(global_deps)\r
+- @mkdir -p .deps/$(@D)\r
++ @mkdir -p $(patsubst %/.,%,.deps/$(@D))\r
+ $(call quiet,CXX $(CPPFLAGS) $(CXXFLAGS)) -c $(FINAL_CXXFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d\r
+ \r
+ %.o: %.c $(global_deps)\r
+- @mkdir -p .deps/$(@D)\r
++ @mkdir -p $(patsubst %/.,%,.deps/$(@D))\r
+ $(call quiet,CC $(CPPFLAGS) $(CFLAGS)) -c $(FINAL_CFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d\r
+ \r
+ .PHONY : clean\r
+-- \r
+1.8.3.1\r
+\r