From aeb700577b5b2955c75093129e01de49b92f124f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 9 Jan 2018 18:30:46 -0500 Subject: Initial commit --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..064c86b --- /dev/null +++ b/Makefile @@ -0,0 +1,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 -- cgit v1.2.3