19 lines
359 B
Makefile
19 lines
359 B
Makefile
.PHONY: fmt test build build-linux-arm64 tidy
|
|
|
|
fmt:
|
|
gofmt -w ./cmd ./internal
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
build:
|
|
mkdir -p bin
|
|
env CGO_ENABLED=0 go build -buildvcs=false -o bin/s3watch ./cmd/s3watch
|
|
|
|
build-linux-arm64:
|
|
mkdir -p bin
|
|
env CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -buildvcs=false -o bin/s3watch-linux-arm64 ./cmd/s3watch
|
|
|
|
tidy:
|
|
go mod tidy
|