--- /dev/null
+Return-Path: <jed@59a2.org>\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 37AF1431E82\r
+ for <notmuch@notmuchmail.org>; Sun, 3 Nov 2013 07:40:25 -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 h78PVTNB2ag2 for <notmuch@notmuchmail.org>;\r
+ Sun, 3 Nov 2013 07:40:17 -0800 (PST)\r
+X-Greylist: delayed 305 seconds by postgrey-1.32 at olra;\r
+ Sun, 03 Nov 2013 07:40:16 PST\r
+Received: from jedbrown.org (jedbrown.org [198.199.121.66])\r
+ (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id ECE3F431E62\r
+ for <notmuch@notmuchmail.org>; Sun, 3 Nov 2013 07:40:16 -0800 (PST)\r
+Received: from localhost (unknown [65.127.208.182])\r
+ by jedbrown.org (Postfix) with ESMTPSA id 1F72380E87;\r
+ Sun, 3 Nov 2013 15:35:07 +0000 (UTC)\r
+From: Jed Brown <jed@59A2.org>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/1] build: remove trailing '/.' when doing mkdir -p\r
+ .deps/.\r
+In-Reply-To: <1383487535-21597-1-git-send-email-tomi.ollila@iki.fi>\r
+References: <1383487535-21597-1-git-send-email-tomi.ollila@iki.fi>\r
+User-Agent: Notmuch/0.16+100~g18ee1e2 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+Date: Sun, 03 Nov 2013 08:35:03 -0700\r
+Message-ID: <87fvrd8pnc.fsf@mcs.anl.gov>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+ micalg=pgp-sha1; protocol="application/pgp-signature"\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 15:40:25 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+\r
+Tomi Ollila <tomi.ollila@iki.fi> writes:\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
+An alternative approach is to use directory marker files [1] to clean up\r
+the recipes that need output directories and to satisfy Paul's second\r
+rule of makefiles [2].\r
+\r
+.SECONDEXPANSION:\r
+\r
+%.o: %.cc $(global_deps) | .deps/$$(@D)/.DIR\r
+ $(call quiet,CXX $(CPPFLAGS) $(CXXFLAGS)) -c $(FINAL_CXXFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d\r
+\r
+%/.DIR:\r
+ @mkdir -p $(patsubst %/.,%,$(@D))\r
+ @touch $@\r
+\r
+.PRECIOUS: %.DIR\r
+\r
+\r
+\r
+[1] http://www.cmcrossroads.com/article/making-directories-gnu-make\r
+[2] http://make.paulandlesley.org/rules.html\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2.0.22 (GNU/Linux)\r
+\r
+iQIcBAEBAgAGBQJSdm0rAAoJEM+2iNHeMalNl+IP/2ixMG6Zt8JkNf6qdwLLqGkz\r
+jofays2bHr8uO0zzibU+IOb2TcWlCh81cUGOHdy7PLZjeVkG7cqH8g//RF5OUslD\r
+f6wZ3oy64jKxp8E02mQm1mmNgiVXAB7jGfaMDOdJnFkK3y3rW1O2Sl4UUYPBKwMs\r
+RnsjbahB7z4RQlLfTtFazRQ/PHq7C5NXcJ9KWng3wfiL/GrYDyixDd83quBQHJ+f\r
+nANlemiIC6NPr/Ikc0CO+s7J0/xKKNAQTjnWFj7NbwlAE4tEHh4ekq5YBRuV5oI7\r
+nKiQsrorizosGmgir0WBdC3jMrK+8savkxZq/yTQFJV4JQTITKEoObC1l7Aekgny\r
+vB/ogiJ4NoHUCoacP0UfU1TAMacZ3RfowWCrBll+LS0xCEDrKZ4J3Vylg9S3tPW3\r
+bcXM99fGHX8lJSJCp3mbomnGACLZ/Pw3HJdc+2bfdpzB7uEb/FBrOBPJqWTT/0ZV\r
+dM8xk78CA2pkZ0LWvlZc0b2ToT06WQsR3Cppkms26fL1sutshBQTs08GHcw3yICP\r
+CxKJ/yEsP0x6whMtt7X7y/QfW0FLAgeQQad/UAuVfqcX1aqoscxFOPYpVDx8jk9x\r
+lrBiJi37HLKN4OyUE0R4ueKO+5TGQVZQh+1lnq61IseUp9rDklesLUecGB7tkgIz\r
+6MVxyYiPspDqu7ndnBZB\r
+=Zyax\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r