How does notmuch track mails?
[notmuch-archives.git] / 2b / a90a2bc144d013d17011c24282d2f57e3b1faf
1 Return-Path: <teythoon@jade-hamburg.de>\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 7B454431FC0\r
6         for <notmuch@notmuchmail.org>; Wed,  9 May 2012 04:15:46 -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 lwM38v-eud8U for <notmuch@notmuchmail.org>;\r
16         Wed,  9 May 2012 04:15:44 -0700 (PDT)\r
17 Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68])\r
18         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 1CF7E431FCF\r
21         for <notmuch@notmuchmail.org>; Wed,  9 May 2012 04:15:42 -0700 (PDT)\r
22 Received: from mail.jade-hamburg.de (mail.jade-hamburg.de [85.183.11.228])\r
23         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
24         (No client certificate requested)\r
25         by mail.cryptobitch.de (Postfix) with ESMTPSA id 9FF01588C23\r
26         for <notmuch@notmuchmail.org>; Wed,  9 May 2012 13:15:40 +0200 (CEST)\r
27 Received: by mail.jade-hamburg.de (Postfix, from userid 401)\r
28         id 45C8CDF2A8; Wed,  9 May 2012 13:15:25 +0200 (CEST)\r
29 Received: from thinkbox.jade-hamburg.de (mail.jade-hamburg.de [85.183.11.228])\r
30         (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
31         (No client certificate requested) (Authenticated sender: teythoon)\r
32         by mail.jade-hamburg.de (Postfix) with ESMTPSA id E0824DF2A4;\r
33         Wed,  9 May 2012 13:15:18 +0200 (CEST)\r
34 Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77)\r
35         (envelope-from <teythoon@thinkbox.jade-hamburg.de>)\r
36         id 1SS4rj-0003cf-4R; Wed, 09 May 2012 13:15:31 +0200\r
37 From: Justus Winter <4winter@informatik.uni-hamburg.de>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH 4/5] go: update the build system\r
40 Date: Wed,  9 May 2012 13:15:19 +0200\r
41 Message-Id:\r
42  <1336562120-13837-5-git-send-email-4winter@informatik.uni-hamburg.de>\r
43 X-Mailer: git-send-email 1.7.10\r
44 In-Reply-To:\r
45  <1336562120-13837-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
46 References: <20120505111535.3687.9018@thinkbox.jade-hamburg.de>\r
47         <1336562120-13837-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Wed, 09 May 2012 11:15:46 -0000\r
61 \r
62 The new "go" utility does not require any Makefiles to compile go\r
63 packages and programs. Remove the old Makefiles and replace the top\r
64 level Makefile with one defining some convenience targets for\r
65 compiling the notmuch bindings and the notmuch-addrlookup utility.\r
66 \r
67 Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>\r
68 ---\r
69  bindings/go/Makefile      |   70 ++++++++++++++++++++++++++-------------------\r
70  bindings/go/cmds/Makefile |   11 -------\r
71  bindings/go/pkg/Makefile  |   17 -----------\r
72  3 files changed, 40 insertions(+), 58 deletions(-)\r
73  delete mode 100644 bindings/go/cmds/Makefile\r
74  delete mode 100644 bindings/go/pkg/Makefile\r
75 \r
76 diff --git a/bindings/go/Makefile b/bindings/go/Makefile\r
77 index aba2d59..c38f234 100644\r
78 --- a/bindings/go/Makefile\r
79 +++ b/bindings/go/Makefile\r
80 @@ -1,30 +1,40 @@\r
81 -# Copyright 2009 The Go Authors. All rights reserved.\r
82 -# Use of this source code is governed by a BSD-style\r
83 -# license that can be found in the LICENSE file.\r
84 -\r
85 -include ${GOROOT}/src/Make.inc\r
86 -\r
87 -all: install\r
88 -\r
89 -DIRS=\\r
90 -        pkg\\r
91 -        cmds\\r
92 -\r
93 -\r
94 -clean.dirs: $(addsuffix .clean, $(DIRS))\r
95 -install.dirs: $(addsuffix .install, $(DIRS))\r
96 -nuke.dirs: $(addsuffix .nuke, $(DIRS))\r
97 -test.dirs: $(addsuffix .test, $(TEST))\r
98 -bench.dirs: $(addsuffix .bench, $(BENCH))\r
99 -\r
100 -%.clean:\r
101 -       +cd $* && $(QUOTED_GOBIN)/gomake clean\r
102 -\r
103 -%.install:\r
104 -       +cd $* && $(QUOTED_GOBIN)/gomake install\r
105 -\r
106 -clean: clean.dirs\r
107 -\r
108 -install: install.dirs\r
109 -\r
110 -#-include ${GOROOT}/src/Make.deps\r
111 +# Makefile for the go bindings of notmuch\r
112 +\r
113 +export GOPATH      ?= $(shell pwd)\r
114 +export CGO_CFLAGS  ?= -I../../../../lib\r
115 +export CGO_LDFLAGS ?= -L../../../../lib\r
116 +\r
117 +GO         ?= go\r
118 +GOFMT      ?= gofmt\r
119 +\r
120 +all: notmuch notmuch-addrlookup\r
121 +\r
122 +.PHONY: notmuch\r
123 +notmuch:\r
124 +       $(GO) install notmuch\r
125 +\r
126 +.PHONY: goconfig\r
127 +goconfig:\r
128 +       if [ ! -d src/github.com/kless/goconfig/config ]; then \\r
129 +           $(GO) get github.com/kless/goconfig/config; \\r
130 +       fi\r
131 +\r
132 +.PHONY: notmuch-addrlookup\r
133 +notmuch-addrlookup: notmuch goconfig\r
134 +       $(GO) install notmuch-addrlookup\r
135 +\r
136 +.PHONY: format\r
137 +format:\r
138 +       $(GOFMT) -w=true $(GOFMT_OPTS) src/notmuch\r
139 +       $(GOFMT) -w=true $(GOFMT_OPTS) src/notmuch-addrlookup\r
140 +\r
141 +.PHONY: check-format\r
142 +check-format:\r
143 +       $(GOFMT) -d=true $(GOFMT_OPTS) src/notmuch\r
144 +       $(GOFMT) -d=true $(GOFMT_OPTS) src/notmuch-addrlookup\r
145 +\r
146 +.PHONY: clean\r
147 +clean:\r
148 +       $(GO) clean notmuch\r
149 +       $(GO) clean notmuch-addrlookup\r
150 +       rm -rf pkg bin\r
151 diff --git a/bindings/go/cmds/Makefile b/bindings/go/cmds/Makefile\r
152 deleted file mode 100644\r
153 index afbc6d2..0000000\r
154 --- a/bindings/go/cmds/Makefile\r
155 +++ /dev/null\r
156 @@ -1,11 +0,0 @@\r
157 -# Copyright 2009 The Go Authors. All rights reserved.\r
158 -# Use of this source code is governed by a BSD-style\r
159 -# license that can be found in the LICENSE file.\r
160 -\r
161 -include ${GOROOT}/src/Make.inc\r
162 -\r
163 -TARG=notmuch-addrlookup\r
164 -GOFILES=\\r
165 -       notmuch-addrlookup.go\r
166 -\r
167 -include ${GOROOT}/src/Make.cmd\r
168 diff --git a/bindings/go/pkg/Makefile b/bindings/go/pkg/Makefile\r
169 deleted file mode 100644\r
170 index de89dbc..0000000\r
171 --- a/bindings/go/pkg/Makefile\r
172 +++ /dev/null\r
173 @@ -1,17 +0,0 @@\r
174 -# Copyright 2009 The Go Authors.  All rights reserved.\r
175 -# Use of this source code is governed by a BSD-style\r
176 -# license that can be found in the LICENSE file.\r
177 -\r
178 -include $(GOROOT)/src/Make.inc\r
179 -\r
180 -TARG=notmuch\r
181 -CGOFILES=notmuch.go\r
182 -CGO_LDFLAGS=-lnotmuch\r
183 -\r
184 -CLEANFILES+=notmuch_test\r
185 -\r
186 -include $(GOROOT)/src/Make.pkg\r
187 -\r
188 -%: install %.go\r
189 -       $(GC) $*.go\r
190 -       $(LD) -o $@ $*.$O\r
191 -- \r
192 1.7.10\r
193 \r