2018-01-10 00:30:46 +01:00
|
|
|
PKGNAME = git.sr.ht/~sircmpwn/aerc2
|
|
|
|
|
2018-02-14 05:06:37 +01:00
|
|
|
GOPATH = $(shell pwd)/.go
|
2018-01-10 00:30:46 +01:00
|
|
|
PKGPATH = .go/src/$(PKGNAME)
|
|
|
|
|
|
|
|
all: aerc
|
|
|
|
|
|
|
|
.go:
|
|
|
|
mkdir -p $(dir $(PKGPATH))
|
2018-02-14 05:06:37 +01:00
|
|
|
ln -fs $(shell dirname $(GOPATH)) $(PKGPATH)
|
2018-01-10 00:30:46 +01:00
|
|
|
|
|
|
|
get: .go
|
|
|
|
env GOPATH=$(GOPATH) go get -d ./...
|
|
|
|
|
|
|
|
test: .go
|
|
|
|
env GOPATH=$(GOPATH) go test ./...
|
|
|
|
|
|
|
|
aerc: .go
|
|
|
|
env GOPATH=$(GOPATH) go build -o $@ ./cmd/$@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf .go aerc
|
|
|
|
|
2018-01-10 01:18:19 +01:00
|
|
|
.PHONY: aerc get test clean
|