Files
yoink-go/Makefile
Bryan Bailey 70e201c54e
Some checks failed
Build and Release / Build and Release for Linux (push) Has been cancelled
Build and Release / Build and Release for Windows (push) Has been cancelled
build(yoink): add Makefile for windows, linux, and darwin
2026-03-06 22:06:31 -05:00

21 lines
512 B
Makefile

BIN := yoink
BUILD_DIR := build
.PHONY: all windows linux darwin clean
all: windows linux darwin
windows:
GOOS=windows GOARCH=amd64 go build -o $(BUILD_DIR)/$(BIN)-windows-amd64.exe
linux:
GOOS=linux GOARCH=amd64 go build -o $(BUILD_DIR)/$(BIN)-linux-amd64
GOOS=linux GOARCH=arm64 go build -o $(BUILD_DIR)/$(BIN)-linux-arm64
darwin:
GOOS=darwin GOARCH=amd64 go build -o $(BUILD_DIR)/$(BIN)-darwin-amd64
GOOS=darwin GOARCH=arm64 go build -o $(BUILD_DIR)/$(BIN)-darwin-arm64
clean:
rm -rf $(BUILD_DIR)