awl/Makefile
Sam Therapy d31ad6e71a
All checks were successful
continuous-integration/drone/push Build is passing
Add basic makefiles (#25)
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>
2022-07-03 20:50:58 +00:00

27 lines
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