aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-01-09 18:30:46 -0500
committerDrew DeVault <sir@cmpwn.com>2018-01-09 18:31:40 -0500
commitaeb700577b5b2955c75093129e01de49b92f124f (patch)
tree6f1b9cd7d8d8c37d1c629d51db1b4eebd5c5d37a /Makefile
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
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