init commit
This commit is contained in:
24
Makefile
Normal file
24
Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
VERSION := $(shell cat VERSION)
|
||||
BINARY := build/mach
|
||||
LDFLAGS := -ldflags "-X mach/cmd.Version=$(VERSION)"
|
||||
|
||||
.PHONY: build clean install test fmt vet
|
||||
|
||||
build:
|
||||
@mkdir -p build
|
||||
go build $(LDFLAGS) -o $(BINARY) .
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
install: build
|
||||
cp $(BINARY) /usr/local/bin/mach
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
fmt:
|
||||
go fmt ./...
|
||||
|
||||
vet:
|
||||
go vet ./...
|
||||
Reference in New Issue
Block a user