Initial import of Go bindings for notmuch
[notmuch] / bindings / go / Makefile
1 # Copyright 2009 The Go Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style
3 # license that can be found in the LICENSE file.
4
5 include ${GOROOT}/src/Make.inc
6
7 all: install
8
9 DIRS=\
10         pkg\
11         cmds\
12
13
14 clean.dirs: $(addsuffix .clean, $(DIRS))
15 install.dirs: $(addsuffix .install, $(DIRS))
16 nuke.dirs: $(addsuffix .nuke, $(DIRS))
17 test.dirs: $(addsuffix .test, $(TEST))
18 bench.dirs: $(addsuffix .bench, $(BENCH))
19
20 %.clean:
21         +cd $* && $(QUOTED_GOBIN)/gomake clean
22
23 %.install:
24         +cd $* && $(QUOTED_GOBIN)/gomake install
25
26 clean: clean.dirs
27
28 install: install.dirs
29
30 #-include ${GOROOT}/src/Make.deps