Sam
d31ad6e71a
All checks were successful
continuous-integration/drone/push Build is passing
close #24 Co-authored-by: Sam Therapy <sam@samtherapy.net> Co-authored-by: grumbulon <grumbulon@grumbulon.xyz> Reviewed-on: #25 Co-authored-by: Sam <sam@samtherapy.net> Co-committed-by: Sam <sam@samtherapy.net>
27 lines
No EOL
321 B
Makefile
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
|