Initial commit

This commit is contained in:
Drew DeVault 2018-01-09 18:30:46 -05:00
commit aeb700577b
3 changed files with 35 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.go
/aerc

24
Makefile Normal file
View File

@ -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

9
cmd/aerc/main.go Normal file
View File

@ -0,0 +1,9 @@
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello world")
}