1 Return-Path: <felipe.contreras@gmail.com>
\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 9511C431FBC
\r
6 for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 08:58:05 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id 1BtTO3lUm5QA for <notmuch@notmuchmail.org>;
\r
17 Wed, 18 Apr 2012 08:58:00 -0700 (PDT)
\r
18 Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com
\r
19 [209.85.215.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 9BA45431FAE
\r
22 for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 08:58:00 -0700 (PDT)
\r
23 Received: by eaa1 with SMTP id 1so3090887eaa.26
\r
24 for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 08:57:59 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
\r
27 :cc:content-type:content-transfer-encoding;
\r
28 bh=3LLVkU9oWKGPR/rXsI7LjkmkzyN2YTYsm4AljcIrZok=;
\r
29 b=DCbyrEm0ZWqqJhmihkivGKDWhpf/2/eo257sYj/bMhFoPgM8wWzelayIPP9XRUbr0g
\r
30 AM2ROb+Rm0uOMsy/7sUKGOTB5VjvgxbRZgX2Rs70n/pew/a27HkxaEwy0eqkBK6UCBBl
\r
31 h8eO5aYBCAGoT1jEpDeeHghR0YIKRROHbDW3PSPHSEizcdn/C3DLTskYE/TYOaAiHULz
\r
32 vDakGTf02q+0Q2rgIEn9X62fDoq0zZfXtYa3a1jfflenbMRqzxyGFAzYXGR9s/Dm4NXO
\r
33 718Be97wK0su+11QGOcoJWqWXQLnhaQ1RMOVnH/OYeaVaGoqThizNfsCJ87HxmGH82vb
\r
36 Received: by 10.14.96.129 with SMTP id r1mr477519eef.86.1334764679414; Wed, 18
\r
37 Apr 2012 08:57:59 -0700 (PDT)
\r
38 Received: by 10.213.19.67 with HTTP; Wed, 18 Apr 2012 08:57:59 -0700 (PDT)
\r
39 In-Reply-To: <m2sjg1dp51.fsf@guru.guru-group.fi>
\r
40 References: <1334751115-7216-1-git-send-email-felipe.contreras@gmail.com>
\r
41 <m2ty0hxk0p.fsf@guru.guru-group.fi>
\r
42 <CAMP44s3wmEnP=iMQY0gvNKPNAQnMVgCGmkqqaD+L3Fd8nhnMGQ@mail.gmail.com>
\r
43 <871unlgk7h.fsf@zancas.localnet>
\r
44 <m2sjg1dp51.fsf@guru.guru-group.fi>
\r
45 Date: Wed, 18 Apr 2012 18:57:59 +0300
\r
47 <CAMP44s0icH2UfnmFJ9=DDGKUzs4jNLHdnHBZ9Yxnd-Ka2nor_A@mail.gmail.com>
\r
48 Subject: Re: [PATCH] vim: simplify build
\r
49 From: Felipe Contreras <felipe.contreras@gmail.com>
\r
50 To: Tomi Ollila <tomi.ollila@iki.fi>
\r
51 Content-Type: text/plain; charset=UTF-8
\r
52 Content-Transfer-Encoding: quoted-printable
\r
53 Cc: notmuch@notmuchmail.org
\r
54 X-BeenThere: notmuch@notmuchmail.org
\r
55 X-Mailman-Version: 2.1.13
\r
57 List-Id: "Use and development of the notmuch mail system."
\r
58 <notmuch.notmuchmail.org>
\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
62 List-Post: <mailto:notmuch@notmuchmail.org>
\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
66 X-List-Received-Date: Wed, 18 Apr 2012 15:58:05 -0000
\r
68 On Wed, Apr 18, 2012 at 6:40 PM, Tomi Ollila <tomi.ollila@iki.fi> wrote:
\r
69 > On Wed, Apr 18 2012, David Bremner <david@tethera.net> wrote:
\r
71 >> Felipe Contreras <felipe.contreras@gmail.com> writes:
\r
72 >>>> If this is not an issue, then LGTM.
\r
74 >>> I don't know, I have always used $(PWD), unless anybody else prefers
\r
75 >>> $(CURDIR), I'll push that.
\r
77 >> I think CURDIR is better; if only because it is the standard (GNU) make
\r
78 >> way of doing things [1]. =C2=A0I'm not sure if there is a functional
\r
79 >> difference or not. At least CURDIR definitely works with make -C [2]
\r
81 > I read some web pages and then did an experiment; GNU make (v 3.77+)
\r
82 > has builtin variable $(CURDIR). $(PWD) gets value from environment:
\r
84 > doing the following:
\r
86 > $ cat > foo.mk <<EOF
\r
88 > =C2=A0 =C2=A0 =C2=A0 =C2=A0pwd=3D`pwd`; echo $pwd
\r
89 > =C2=A0 =C2=A0 =C2=A0 =C2=A0echo $(CURDIR)
\r
90 > =C2=A0 =C2=A0 =C2=A0 =C2=A0echo $(PWD)
\r
92 > $ PWD=3D make -f foo.mk
\r
93 > pwd=3D`pwd`; echo $pwd
\r
95 Agh! Complete confusion. Add an '@' before echo =3D/
\r
97 > So, most portable option would be using pwd=3D`pwd`; echo $pwd
\r
98 > construct in the makefile. Next option would be using $(CURDIR)
\r
99 > and it works with -C (and with original bourne shell which does
\r
100 > not manage $PWD). That is GNU make (v 3.77+) spesific but the makefiles
\r
101 > use GNU make constructs elsewhere too.
\r
103 I think `pwd` is overkill. I vote for $(CURDIR), although $$PWD
\r
104 wouldn't be bad either.
\r