From aeb700577b5b2955c75093129e01de49b92f124f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 9 Jan 2018 18:30:46 -0500 Subject: [PATCH] Initial commit --- .gitignore | 2 ++ Makefile | 24 ++++++++++++++++++++++++ cmd/aerc/main.go | 9 +++++++++ 3 files changed, 35 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 cmd/aerc/main.go diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f1683ec --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.go +/aerc 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 diff --git a/cmd/aerc/main.go b/cmd/aerc/main.go new file mode 100644 index 0000000..24dcac8 --- /dev/null +++ b/cmd/aerc/main.go @@ -0,0 +1,9 @@ +package main + +import ( + "fmt" +) + +func main() { + fmt.Println("Hello world") +}