awl/Makefile
Sam Therapy 69a8365f13
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Add basic makefiles
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-07-03 18:20:51 +02:00

27 lines
No EOL
321 B
Makefile

GO:=go
GOFLAGS:= -ldflags '-s -w'
PREFIX:=/usr/local
BINPATH=$(PREFIX)/bin
# hehe
all: awl
awl: .
$(GO) build -o awl $(GOFLAGS) .
test:
$(GO) test ./...
fmt:
$(GO) fmt
vet:
$(GO) vet
lint: fmt vet
install: awl
install awl $(BINPATH) || echo "You probably need to run `sudo make install`"
clean:
$(GO) clean