diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f2ca423 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +GO:=go +GOFLAGS:= -ldflags '-s -w' +PREFIX:=/usr/local +BINPATH=$(PREFIX)/bin + +# hehe +all: awl + +awl: . + $(GO) build -o awl $(GOFLAGS) . + +test: + $(GO) test ./... + +fmt: + $(GO) fmt + +vet: + $(GO) vet + +lint: fmt vet + +install: awl + install awl $(BINPATH) || echo "You probably need to run `sudo make install`" + +clean: + $(GO) clean \ No newline at end of file diff --git a/Mkfile b/Mkfile new file mode 100644 index 0000000..c8a0359 --- /dev/null +++ b/Mkfile @@ -0,0 +1,9 @@ +GO=GO +awl: awl.go + $GO build -o awl + +install: + $GO install . + +test: + $GO test ./...