mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 10:28:09 +01:00
b0d03fc5ba
This signals two things, an intent to be more liberal about accepting patches, and an intent to stop distributing the bindings if maintenance doesn't pick up.
40 lines
855 B
Makefile
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
|