awl/mkfile
Sam Therapy a5980be3cc
All checks were successful
Mirror Push / mirror (push) Successful in 7s
Test / test (stable) (push) Successful in 36s
Test / test (oldstable) (push) Successful in 56s
docs: Use the docs folder more
Also rename it from doc to docs

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2024-03-23 22:05:57 +01:00

36 lines
524 B
Makefile

# SPDX-License-Identifier: BSD-3-Clause
# Plan 9 mkfile
</$objtype/mkfile
GO = go
PROG = awl
VERSION = `{awk '{print substr($0,0,8)}' .git/refs/heads/master}
GOFLAGS = -ldflags=-s -ldflags=-w -ldflags=-X=main.version=$VERSION -trimpath
CGO_ENABLED = 0
all:V: $PROG
$PROG:
$GO build $GOFLAGS -o $target .
install:V:
$GO install $GOFLAGS .
# cp docs/$PROG.1 /sys/man/1/$PROG
test:V:
$GO test -v -cover ./...
fmt:V:
gofmt -w -s .
vet:V:
$GO vet ./...
lint:V: fmt vet
clean:V:
$GO clean
nuke:V: clean