Add basic makefiles
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-07-03 18:20:51 +02:00
parent 85a00bffbf
commit 69a8365f13
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
2 changed files with 30 additions and 0 deletions

27
Makefile Normal file
View file

@ -0,0 +1,27 @@
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

3
Mkfile Normal file
View file

@ -0,0 +1,3 @@
GO=GO
awl: awl.GO
$GO build -o awl