Sam Therapy
1b5d5a3fed
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
35 lines
No EOL
440 B
Makefile
35 lines
No EOL
440 B
Makefile
# This should only be used for dev environments
|
|
GO := go
|
|
GOFLAGS := -ldflags '-s -w'
|
|
PREFIX := /usr/local
|
|
BINPATH = $(PREFIX)/bin
|
|
export CGO_ENABLED=1
|
|
export CC=gcc
|
|
|
|
.PHONY: clean doc
|
|
|
|
# hehe
|
|
all: awl
|
|
|
|
awl: .
|
|
$(GO) build -o awl $(GOFLAGS) .
|
|
|
|
doc:
|
|
scdoc < doc/awl.1.md > doc/awl.1
|
|
|
|
test:
|
|
$(GO) test -race -v ./... -cover
|
|
|
|
fmt:
|
|
gofmt -w -s .
|
|
|
|
vet:
|
|
$(GO) vet ./...
|
|
|
|
lint: fmt vet
|
|
|
|
install: awl
|
|
install awl $(BINPATH)
|
|
|
|
clean:
|
|
$(GO) clean
|