awl/Makefile
Sam Therapy 1b5d5a3fed
Some checks failed
continuous-integration/drone/push Build is failing
Do "a few things"
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-07-20 23:14:15 +02:00

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