aerc/Makefile
Drew DeVault 18493180bd Make Makefile more POSIXly portable
This breaks out of tree builds though
2018-02-13 23:06:37 -05:00

24 lines
389 B
Makefile

PKGNAME = git.sr.ht/~sircmpwn/aerc2
GOPATH = $(shell pwd)/.go
PKGPATH = .go/src/$(PKGNAME)
all: aerc
.go:
mkdir -p $(dir $(PKGPATH))
ln -fs $(shell dirname $(GOPATH)) $(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