Files
mach/Makefile
Yehoshua Adam Sandler e70b629b4a init commit
2026-02-05 15:33:07 -06:00

25 lines
344 B
Makefile

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 ./...