Add basic makefiles #25

Merged
grumbulon merged 3 commits from make into master 2022-07-03 20:50:59 +00:00
2 changed files with 30 additions and 0 deletions
Showing only changes of commit 69a8365f13 - Show all commits

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