GO ?= go

.PHONY: test build build-mac-arm64 build-mac-amd64 clean

test:
	$(GO) test ./...

build:
	$(GO) build -o dist/rs ./cmd/rs

build-mac-arm64:
	GOOS=darwin GOARCH=arm64 $(GO) build -trimpath -ldflags="-s -w" -o dist/rs-darwin-arm64 ./cmd/rs

build-mac-amd64:
	GOOS=darwin GOARCH=amd64 $(GO) build -trimpath -ldflags="-s -w" -o dist/rs-darwin-amd64 ./cmd/rs

clean:
	rm -rf dist
