mirror of
https://git.sr.ht/~sircmpwn/aerc
synced 2024-11-23 08:32:12 +01:00
25 lines
377 B
Makefile
25 lines
377 B
Makefile
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: aerc get test clean
|