Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / a3 / 2f72d720b21b0a89066667cc3c0b52d4976d53
1 Return-Path: <tomi.ollila@iki.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 B0E70431FB6\r
6         for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 08:40:51 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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 rjyjaABWOl8Q for <notmuch@notmuchmail.org>;\r
16         Wed, 18 Apr 2012 08:40:47 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
18         by olra.theworths.org (Postfix) with ESMTP id 1167B431FAE\r
19         for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 08:40:47 -0700 (PDT)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id D642768055; Wed, 18 Apr 2012 18:40:42 +0300 (EEST)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: David Bremner <david@tethera.net>,\r
24         Felipe Contreras <felipe.contreras@gmail.com>\r
25 Subject: Re: [PATCH] vim: simplify build\r
26 In-Reply-To: <871unlgk7h.fsf@zancas.localnet>\r
27 References: <1334751115-7216-1-git-send-email-felipe.contreras@gmail.com>\r
28         <m2ty0hxk0p.fsf@guru.guru-group.fi>\r
29         <CAMP44s3wmEnP=iMQY0gvNKPNAQnMVgCGmkqqaD+L3Fd8nhnMGQ@mail.gmail.com>\r
30         <871unlgk7h.fsf@zancas.localnet>\r
31 User-Agent: Notmuch/0.12+113~gde05574 (http://notmuchmail.org) Emacs/23.3.1\r
32         (x86_64-unknown-linux-gnu)\r
33 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
34         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
35         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
36 Date: Wed, 18 Apr 2012 18:40:42 +0300\r
37 Message-ID: <m2sjg1dp51.fsf@guru.guru-group.fi>\r
38 MIME-Version: 1.0\r
39 Content-Type: text/plain; charset=us-ascii\r
40 Cc: notmuch@notmuchmail.org\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\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: Wed, 18 Apr 2012 15:40:51 -0000\r
54 \r
55 On Wed, Apr 18 2012, David Bremner <david@tethera.net> wrote:\r
56 \r
57 > Felipe Contreras <felipe.contreras@gmail.com> writes:\r
58 >>> If this is not an issue, then LGTM.\r
59 >>\r
60 >> I don't know, I have always used $(PWD), unless anybody else prefers\r
61 >> $(CURDIR), I'll push that.\r
62 >\r
63 > I think CURDIR is better; if only because it is the standard (GNU) make\r
64 > way of doing things [1].  I'm not sure if there is a functional\r
65 > difference or not. At least CURDIR definitely works with make -C [2]\r
66 \r
67 I read some web pages and then did an experiment; GNU make (v 3.77+)\r
68 has builtin variable $(CURDIR). $(PWD) gets value from environment:\r
69 \r
70 doing the following:\r
71 \r
72 $ cat > foo.mk <<EOF\r
73 all:\r
74         pwd=`pwd`; echo $pwd\r
75         echo $(CURDIR)\r
76         echo $(PWD)\r
77 EOF\r
78 $ PWD= make -f foo.mk\r
79 pwd=`pwd`; echo $pwd\r
80 /home/too\r
81 echo /home/too\r
82 /home/too\r
83 echo \r
84 \r
85 $ cd ..\r
86 $ make -C too -f foo.mk\r
87 make: Entering directory `/home/too'\r
88 pwd=`pwd`; echo $pwd\r
89 /home/too\r
90 echo /home/too\r
91 /home/too\r
92 echo /home\r
93 /home\r
94 make: Leaving directory `/home/too'\r
95 \r
96 \r
97 So, most portable option would be using pwd=`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
102 \r
103 > d\r
104 \r
105 Tomi\r
106 \r
107 >\r
108 >\r
109 > [1]: http://www.gnu.org/software/make/manual/make.html#Recursion\r
110 > [2]: http://www.gnu.org/software/make/manual/make.html#Options-Summary\r
111 > _______________________________________________\r
112 > notmuch mailing list\r
113 > notmuch@notmuchmail.org\r
114 > http://notmuchmail.org/mailman/listinfo/notmuch\r