1 # Makefile for the go bindings of notmuch
3 export GOPATH ?= $(shell pwd)
4 export CGO_CFLAGS ?= -I../../../../lib
5 export CGO_LDFLAGS ?= -L../../../../lib
10 all: notmuch notmuch-addrlookup
18 if [ ! -d src/github.com/kless/goconfig/config ]; then \
19 $(GO) get github.com/kless/goconfig/config; \
22 .PHONY: notmuch-addrlookup
23 notmuch-addrlookup: notmuch goconfig
24 $(GO) install notmuch-addrlookup
28 $(GOFMT) -w=true $(GOFMT_OPTS) src/notmuch
29 $(GOFMT) -w=true $(GOFMT_OPTS) src/notmuch-addrlookup
33 $(GOFMT) -d=true $(GOFMT_OPTS) src/notmuch
34 $(GOFMT) -d=true $(GOFMT_OPTS) src/notmuch-addrlookup
39 $(GO) clean notmuch-addrlookup