notmuch/bindings/go/Makefile
Justus Winter 44fe1f2c16 go: use a different goconfig package
The notmuch-addrlookup utility uses a third party library to read the
notmuch configuration file. The previously used implementation at
"github.com/kless/goconfig" vanished, so this patch switches to the
implementation at "github.com/msbranco/goconfig". As the
implementations differ at the API level, the code is updated
accordingly.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2013-05-03 21:21:01 -03:00

40 lines
855 B
Makefile

# Makefile for the go bindings of notmuch
export GOPATH ?= $(shell pwd)
export CGO_CFLAGS ?= -I../../../../lib
export CGO_LDFLAGS ?= -L../../../../lib
GO ?= go
GOFMT ?= gofmt
all: notmuch notmuch-addrlookup
.PHONY: notmuch
notmuch:
$(GO) install notmuch
.PHONY: goconfig
goconfig:
if [ ! -d github.com/msbranco/goconfig ]; then \
$(GO) get github.com/msbranco/goconfig; \
fi
.PHONY: notmuch-addrlookup
notmuch-addrlookup: notmuch goconfig
$(GO) install notmuch-addrlookup
.PHONY: format
format:
$(GOFMT) -w=true $(GOFMT_OPTS) src/notmuch
$(GOFMT) -w=true $(GOFMT_OPTS) src/notmuch-addrlookup
.PHONY: check-format
check-format:
$(GOFMT) -d=true $(GOFMT_OPTS) src/notmuch
$(GOFMT) -d=true $(GOFMT_OPTS) src/notmuch-addrlookup
.PHONY: clean
clean:
$(GO) clean notmuch
$(GO) clean notmuch-addrlookup
rm -rf pkg bin