Re: [PATCH] vim: simplify build
authorTomi Ollila <tomi.ollila@iki.fi>
Wed, 18 Apr 2012 15:40:42 +0000 (18:40 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:33 +0000 (09:46 -0800)
a3/2f72d720b21b0a89066667cc3c0b52d4976d53 [new file with mode: 0644]

diff --git a/a3/2f72d720b21b0a89066667cc3c0b52d4976d53 b/a3/2f72d720b21b0a89066667cc3c0b52d4976d53
new file mode 100644 (file)
index 0000000..24d3f93
--- /dev/null
@@ -0,0 +1,114 @@
+Return-Path: <tomi.ollila@iki.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 B0E70431FB6\r
+       for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 08:40:51 -0700 (PDT)\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 rjyjaABWOl8Q for <notmuch@notmuchmail.org>;\r
+       Wed, 18 Apr 2012 08:40:47 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1167B431FAE\r
+       for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 08:40:47 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+       id D642768055; Wed, 18 Apr 2012 18:40:42 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: David Bremner <david@tethera.net>,\r
+       Felipe Contreras <felipe.contreras@gmail.com>\r
+Subject: Re: [PATCH] vim: simplify build\r
+In-Reply-To: <871unlgk7h.fsf@zancas.localnet>\r
+References: <1334751115-7216-1-git-send-email-felipe.contreras@gmail.com>\r
+       <m2ty0hxk0p.fsf@guru.guru-group.fi>\r
+       <CAMP44s3wmEnP=iMQY0gvNKPNAQnMVgCGmkqqaD+L3Fd8nhnMGQ@mail.gmail.com>\r
+       <871unlgk7h.fsf@zancas.localnet>\r
+User-Agent: Notmuch/0.12+113~gde05574 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+       $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+       !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Wed, 18 Apr 2012 18:40:42 +0300\r
+Message-ID: <m2sjg1dp51.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Cc: notmuch@notmuchmail.org\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: Wed, 18 Apr 2012 15:40:51 -0000\r
+\r
+On Wed, Apr 18 2012, David Bremner <david@tethera.net> wrote:\r
+\r
+> Felipe Contreras <felipe.contreras@gmail.com> writes:\r
+>>> If this is not an issue, then LGTM.\r
+>>\r
+>> I don't know, I have always used $(PWD), unless anybody else prefers\r
+>> $(CURDIR), I'll push that.\r
+>\r
+> I think CURDIR is better; if only because it is the standard (GNU) make\r
+> way of doing things [1].  I'm not sure if there is a functional\r
+> difference or not. At least CURDIR definitely works with make -C [2]\r
+\r
+I read some web pages and then did an experiment; GNU make (v 3.77+)\r
+has builtin variable $(CURDIR). $(PWD) gets value from environment:\r
+\r
+doing the following:\r
+\r
+$ cat > foo.mk <<EOF\r
+all:\r
+        pwd=`pwd`; echo $pwd\r
+        echo $(CURDIR)\r
+        echo $(PWD)\r
+EOF\r
+$ PWD= make -f foo.mk\r
+pwd=`pwd`; echo $pwd\r
+/home/too\r
+echo /home/too\r
+/home/too\r
+echo \r
+\r
+$ cd ..\r
+$ make -C too -f foo.mk\r
+make: Entering directory `/home/too'\r
+pwd=`pwd`; echo $pwd\r
+/home/too\r
+echo /home/too\r
+/home/too\r
+echo /home\r
+/home\r
+make: Leaving directory `/home/too'\r
+\r
+\r
+So, most portable option would be using pwd=`pwd`; echo $pwd\r
+construct in the makefile. Next option would be using $(CURDIR)\r
+and it works with -C (and with original bourne shell which does\r
+not manage $PWD). That is GNU make (v 3.77+) spesific but the makefiles\r
+use GNU make constructs elsewhere too.\r
+\r
+> d\r
+\r
+Tomi\r
+\r
+>\r
+>\r
+> [1]: http://www.gnu.org/software/make/manual/make.html#Recursion\r
+> [2]: http://www.gnu.org/software/make/manual/make.html#Options-Summary\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r