Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 36 / 19e24c2f6541c06009e9a889efc0e96bf974ef
1 Return-Path: <rory.yorke@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 28228431FAF\r
6         for <notmuch@notmuchmail.org>; Sun,  4 Aug 2013 05:36: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.799\r
10 X-Spam-Level: \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 fb5w8WRBHE1x for <notmuch@notmuchmail.org>;\r
17         Sun,  4 Aug 2013 05:36:46 -0700 (PDT)\r
18 Received: from mail-ea0-f181.google.com (mail-ea0-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 388FC431FAE\r
22         for <notmuch@notmuchmail.org>; Sun,  4 Aug 2013 05:36:46 -0700 (PDT)\r
23 Received: by mail-ea0-f181.google.com with SMTP id d10so1132527eaj.12\r
24         for <notmuch@notmuchmail.org>; Sun, 04 Aug 2013 05:36:43 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
27         :mime-version:content-type;\r
28         bh=lCtEANNKzKmfPRoeTdqWq6ewuZZ5f1U6yig6gl9ou+8=;\r
29         b=lWZfgE4HQu6LoaKCcbrZKurlNxFzRRN9WCxDtLlkpZhtMgNAr0cLinr6oQXRCPfxYE\r
30         7a0t3SyayI2OT06rCi4/Ql1r4oD8aNKk7UcQIUbO7ZAT6TMec5qWlhV9rkmEuZYWqeh9\r
31         fRquvLuZ0TzoOWRUgYzgr4yTZ1U7Z0xE3gT8usYWg3HYWpHuJ49Dt+Ak9D9rZ6ldeIky\r
32         JZDjGOpdtsc2xa0c7fmBdT/KVfx6zQk/+iI1DshNRj6/CRshBQa/l67WqosUhsBSMgB0\r
33         srXrevURIBH5C3fg4d56CGynTKuhyzzhjmODekzHnZUCL71vVJotliqj1UUPmTQ3fAVi\r
34         vuRQ==\r
35 X-Received: by 10.15.83.69 with SMTP id b45mr12638780eez.150.1375619803649;\r
36         Sun, 04 Aug 2013 05:36:43 -0700 (PDT)\r
37 Received: from rory-Inspiron-3521 (ti-225-82-132.telkomadsl.co.za.\r
38         [105.225.82.132])\r
39         by mx.google.com with ESMTPSA id k7sm9399568eeg.13.2013.08.04.05.36.41\r
40         for <multiple recipients>\r
41         (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);\r
42         Sun, 04 Aug 2013 05:36:42 -0700 (PDT)\r
43 Received: from rory-Inspiron-3521 (localhost [127.0.0.1])\r
44         by rory-Inspiron-3521 (Postfix) with ESMTP id 43C1E16001C1;\r
45         Sun,  4 Aug 2013 14:36:38 +0200 (SAST)\r
46 From: Rory Yorke <rory.yorke@gmail.com>\r
47 To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
48 Subject: Re: [PATCH] man/Makefile.local: allow out-of-tree 'make install'.\r
49 In-Reply-To: <m2mwoy32da.fsf@guru.guru-group.fi>\r
50 References: <1375522597-23428-1-git-send-email-rory.yorke@gmail.com>\r
51         <m2mwoy32da.fsf@guru.guru-group.fi>\r
52 User-Agent: Notmuch/0.16 (http://notmuchmail.org) Emacs/24.3.1\r
53         (x86_64-pc-linux-gnu)\r
54 Date: Sun, 04 Aug 2013 14:36:38 +0200\r
55 Message-ID: <871u69pr8p.fsf@gmail.com>\r
56 MIME-Version: 1.0\r
57 Content-Type: text/plain\r
58 X-BeenThere: notmuch@notmuchmail.org\r
59 X-Mailman-Version: 2.1.13\r
60 Precedence: list\r
61 List-Id: "Use and development of the notmuch mail system."\r
62         <notmuch.notmuchmail.org>\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
66 List-Post: <mailto:notmuch@notmuchmail.org>\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
69         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
70 X-List-Received-Date: Sun, 04 Aug 2013 12:36:51 -0000\r
71 \r
72 Tomi Ollila <tomi.ollila@iki.fi> writes:\r
73 \r
74 > So why $(srcdir)/ prefix is needed only here...\r
75 \r
76 Hi,\r
77 \r
78 I'm not sure; I'm afraid I just did something that worked for me.  It\r
79 was long enough ago that I don't remember how I came up with this\r
80 hack. \r
81 \r
82 Here's what appears to be some pertinent different behaviour between\r
83 master and my patch:\r
84 \r
85 1. In empty directory ~/tmp/notmuch-build-master run ~/git/notmuch/configure, with ~/git/notmuch checked out as master:\r
86 2. Partial output of make -d -n install is:\r
87 \r
88     Considering target file `man/man1/notmuch-tag.1.gz'.\r
89      File `man/man1/notmuch-tag.1.gz' does not exist.\r
90      Looking for an implicit rule for `man/man1/notmuch-tag.1.gz'.\r
91      Trying pattern rule with stem `notmuch-tag.1'.\r
92      Trying implicit prerequisite `man/man1/notmuch-tag.1'.\r
93      Found prerequisite `man/man1/notmuch-tag.1' as VPATH `/home/rory/git/notmuch/man/man1/notmuch-tag.1'\r
94 [many lines omitted]\r
95     Must remake target `man/man1/notmuch-tag.1.gz'.\r
96 gzip --stdout /home/rory/git/notmuch/man/man1/notmuch-tag.1 > man/man1/notmuch-tag.1.gz\r
97     Successfully remade target file `man/man1/notmuch-tag.1.gz'.\r
98     Considering target file `man/man5/notmuch-hooks.5.gz'.\r
99      File `man/man5/notmuch-hooks.5.gz' does not exist.\r
100      Looking for an implicit rule for `man/man5/notmuch-hooks.5.gz'.\r
101      Trying pattern rule with stem `notmuch-hooks.5'.\r
102      Trying implicit prerequisite `man/man5/notmuch-hooks.5'.\r
103      Trying pattern rule with stem `notmuch-hooks.5.gz'.\r
104      Trying implicit prerequisite `man/man5/notmuch-hooks.5.gz,v'.\r
105 [many lines omitted]\r
106     Must remake target `man/man5/notmuch-hooks.5.gz'.\r
107 make: *** No rule to make target `man/man5/notmuch-hooks.5.gz', needed by `install-man'.  Stop.\r
108 \r
109 3. In empty directory ~/tmp/notmuch-build-rory run ~/git/notmuch/configure, with ~/git/notmuch checked out as rory.\r
110 4. Partial output of make -d -n install is:\r
111 \r
112     Considering target file `/home/rory/git/notmuch/man/man1/notmuch-tag.1.gz'.\r
113      File `/home/rory/git/notmuch/man/man1/notmuch-tag.1.gz' does not exist.\r
114      Looking for an implicit rule for `/home/rory/git/notmuch/man/man1/notmuch-tag.1.gz'.\r
115      Trying pattern rule with stem `notmuch-tag.1'.\r
116      Trying implicit prerequisite `/home/rory/git/notmuch/man/man1/notmuch-tag.1'.\r
117      Found an implicit rule for `/home/rory/git/notmuch/man/man1/notmuch-tag.1.gz'.\r
118 [many lines omitted]\r
119     Must remake target `/home/rory/git/notmuch/man/man1/notmuch-tag.1.gz'.\r
120 gzip --stdout /home/rory/git/notmuch/man/man1/notmuch-tag.1 > /home/rory/git/notmuch/man/man1/notmuch-tag.1.gz\r
121     Successfully remade target file `/home/rory/git/notmuch/man/man1/notmuch-tag.1.gz'.\r
122     Considering target file `/home/rory/git/notmuch/man/man5/notmuch-hooks.5.gz'.\r
123      File `/home/rory/git/notmuch/man/man5/notmuch-hooks.5.gz' does not exist.\r
124      Looking for an implicit rule for `/home/rory/git/notmuch/man/man5/notmuch-hooks.5.gz'.\r
125      Trying pattern rule with stem `notmuch-hooks.5'.\r
126      Trying implicit prerequisite `/home/rory/git/notmuch/man/man5/notmuch-hooks.5'.\r
127      Found an implicit rule for `/home/rory/git/notmuch/man/man5/notmuch-hooks.5.gz'.\r
128 [many lines omitted]\r
129     Must remake target `/home/rory/git/notmuch/man/man5/notmuch-hooks.5.gz'.\r
130 gzip --stdout /home/rory/git/notmuch/man/man5/notmuch-hooks.5 > /home/rory/git/notmuch/man/man5/notmuch-hooks.5.gz\r
131 \r
132 The successful build of notmuch-tag.1.gz is *different* -- on master\r
133 VPATH is used, while with my patch it is not.\r
134 \r
135 The rules for man1, man5 and man7 certainly look similar, so it's not\r
136 clear why the man1 entries work.  Perhaps this fragment at the top of\r
137 man/Makefile.local is there for a similar reason?\r
138 \r
139   # this variable seems to be needed to prevent lazy evaluation causing\r
140   # problems with $(dir) changing values.\r
141   MAIN_PAGE := $(dir)/man1/notmuch.1\r
142 \r
143 I see the gzipped man files end up in the source tree; I guess ideally\r
144 they'd be in the build tree?\r
145 \r
146 Regards,\r
147 \r
148 Rory\r