aerc/Makefile

25 lines
372 B
Makefile
Raw Normal View History

2018-01-10 00:30:46 +01:00
PKGNAME = git.sr.ht/~sircmpwn/aerc2
GOPATH = $(realpath .go)
PKGPATH = .go/src/$(PKGNAME)
all: aerc
.go:
mkdir -p $(dir $(PKGPATH))
ln -fTrs $(realpath .) $(PKGPATH)
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
.PHONY: get test clean