awl/mkfile
Sam Therapy ded9890ac3
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
MORE
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-07-25 23:09:52 +02:00

31 lines
422 B
Makefile

# SPDX-License-Identifier: BSD-3-Clause
# Plan 9 mkfile
GO = go
PROG = awl
LDFLAGS = '-s -w'
GOFLAGS = -ldflags=$LDFLAGS
CGO_ENABLED = 0
$PROG:
$GO build $GOFLAGS -o $PROG '-buildvcs=false' .
install: $PROG
$GO install $GOFLAGS .
cp doc/$PROG.1 /sys/man/1/$PROG
test:
$GO test -v -cover -coverprofile=coverage/coverage.out ./...
fmt:
gofmt -w -s .
vet:
$GO vet ./...
lint: fmt vet
clean:
$GO clean