Initial commit
This commit is contained in:
commit
aeb700577b
3 changed files with 35 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
.go
|
||||
/aerc
|
24
Makefile
Normal file
24
Makefile
Normal 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
9
cmd/aerc/main.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("Hello world")
|
||||
}
|
Loading…
Reference in a new issue