1 Return-Path: <jed@59a2.org>
\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 37AF1431E82
\r
6 for <notmuch@notmuchmail.org>; Sun, 3 Nov 2013 07:40:25 -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 h78PVTNB2ag2 for <notmuch@notmuchmail.org>;
\r
16 Sun, 3 Nov 2013 07:40:17 -0800 (PST)
\r
17 X-Greylist: delayed 305 seconds by postgrey-1.32 at olra;
\r
18 Sun, 03 Nov 2013 07:40:16 PST
\r
19 Received: from jedbrown.org (jedbrown.org [198.199.121.66])
\r
20 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id ECE3F431E62
\r
23 for <notmuch@notmuchmail.org>; Sun, 3 Nov 2013 07:40:16 -0800 (PST)
\r
24 Received: from localhost (unknown [65.127.208.182])
\r
25 by jedbrown.org (Postfix) with ESMTPSA id 1F72380E87;
\r
26 Sun, 3 Nov 2013 15:35:07 +0000 (UTC)
\r
27 From: Jed Brown <jed@59A2.org>
\r
28 To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org
\r
29 Subject: Re: [PATCH 1/1] build: remove trailing '/.' when doing mkdir -p
\r
31 In-Reply-To: <1383487535-21597-1-git-send-email-tomi.ollila@iki.fi>
\r
32 References: <1383487535-21597-1-git-send-email-tomi.ollila@iki.fi>
\r
33 User-Agent: Notmuch/0.16+100~g18ee1e2 (http://notmuchmail.org) Emacs/24.3.1
\r
34 (x86_64-unknown-linux-gnu)
\r
35 Date: Sun, 03 Nov 2013 08:35:03 -0700
\r
36 Message-ID: <87fvrd8pnc.fsf@mcs.anl.gov>
\r
38 Content-Type: multipart/signed; boundary="=-=-=";
\r
39 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
40 Cc: tomi.ollila@iki.fi
\r
41 X-BeenThere: notmuch@notmuchmail.org
\r
42 X-Mailman-Version: 2.1.13
\r
44 List-Id: "Use and development of the notmuch mail system."
\r
45 <notmuch.notmuchmail.org>
\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
49 List-Post: <mailto:notmuch@notmuchmail.org>
\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
53 X-List-Received-Date: Sun, 03 Nov 2013 15:40:25 -0000
\r
56 Content-Type: text/plain
\r
58 Tomi Ollila <tomi.ollila@iki.fi> writes:
\r
60 > %.o: %.cc $(global_deps)
\r
61 > - @mkdir -p .deps/$(@D)
\r
62 > + @mkdir -p $(patsubst %/.,%,.deps/$(@D))
\r
63 > $(call quiet,CXX $(CPPFLAGS) $(CXXFLAGS)) -c $(FINAL_CXXFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d
\r
65 An alternative approach is to use directory marker files [1] to clean up
\r
66 the recipes that need output directories and to satisfy Paul's second
\r
67 rule of makefiles [2].
\r
71 %.o: %.cc $(global_deps) | .deps/$$(@D)/.DIR
\r
72 $(call quiet,CXX $(CPPFLAGS) $(CXXFLAGS)) -c $(FINAL_CXXFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d
\r
75 @mkdir -p $(patsubst %/.,%,$(@D))
\r
82 [1] http://www.cmcrossroads.com/article/making-directories-gnu-make
\r
83 [2] http://make.paulandlesley.org/rules.html
\r
86 Content-Type: application/pgp-signature
\r
88 -----BEGIN PGP SIGNATURE-----
\r
89 Version: GnuPG v2.0.22 (GNU/Linux)
\r
91 iQIcBAEBAgAGBQJSdm0rAAoJEM+2iNHeMalNl+IP/2ixMG6Zt8JkNf6qdwLLqGkz
\r
92 jofays2bHr8uO0zzibU+IOb2TcWlCh81cUGOHdy7PLZjeVkG7cqH8g//RF5OUslD
\r
93 f6wZ3oy64jKxp8E02mQm1mmNgiVXAB7jGfaMDOdJnFkK3y3rW1O2Sl4UUYPBKwMs
\r
94 RnsjbahB7z4RQlLfTtFazRQ/PHq7C5NXcJ9KWng3wfiL/GrYDyixDd83quBQHJ+f
\r
95 nANlemiIC6NPr/Ikc0CO+s7J0/xKKNAQTjnWFj7NbwlAE4tEHh4ekq5YBRuV5oI7
\r
96 nKiQsrorizosGmgir0WBdC3jMrK+8savkxZq/yTQFJV4JQTITKEoObC1l7Aekgny
\r
97 vB/ogiJ4NoHUCoacP0UfU1TAMacZ3RfowWCrBll+LS0xCEDrKZ4J3Vylg9S3tPW3
\r
98 bcXM99fGHX8lJSJCp3mbomnGACLZ/Pw3HJdc+2bfdpzB7uEb/FBrOBPJqWTT/0ZV
\r
99 dM8xk78CA2pkZ0LWvlZc0b2ToT06WQsR3Cppkms26fL1sutshBQTs08GHcw3yICP
\r
100 CxKJ/yEsP0x6whMtt7X7y/QfW0FLAgeQQad/UAuVfqcX1aqoscxFOPYpVDx8jk9x
\r
101 lrBiJi37HLKN4OyUE0R4ueKO+5TGQVZQh+1lnq61IseUp9rDklesLUecGB7tkgIz
\r
102 6MVxyYiPspDqu7ndnBZB
\r
104 -----END PGP SIGNATURE-----
\r