awl/mkfile
Sam Therapy 7ed7d9bf81
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Fix mkfile
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-07-23 00:47:16 +02:00

36 lines
433 B
Makefile

# SPDX-License-Identifier: BSD-3-Clause
GO = go
SCDOC = scdoc
PROG = awl
LDFLAGS = '-s -w'
GOFLAGS = -ldflags=$LDFLAGS
CGO_ENABLED = 0
$PROG:
$GO build $GOFLAGS -o $PROG .
doc: doc/$PROG.1.md
$SCDOC < doc/$PROG.1.md > doc/$PROG.1
install:
$GO install $GOFLAGS .
install_doc:
cp doc/$PROG.1 /sys/man/1/$PROG
test:
$GO test -v ./... -cover
fmt:
gofmt -w -s .
vet:
$GO vet ./...
lint: fmt vet
clean:
$GO clean