aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 064c86b0ca81d8f7407325d3fa6c09046952418c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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