init commit

This commit is contained in:
Yehoshua Adam Sandler
2026-02-05 15:33:07 -06:00
commit e70b629b4a
13 changed files with 1021 additions and 0 deletions

24
Makefile Normal file
View 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 ./...