From 70e201c54e55b5d002fd71c1993ceb2d0b996775 Mon Sep 17 00:00:00 2001 From: Bryan Bailey Date: Fri, 6 Mar 2026 22:06:31 -0500 Subject: [PATCH] build(yoink): add Makefile for windows, linux, and darwin --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..53e5b73 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +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)