From 533886f2e41b45a9f8ba02ad500efd2fb7a26871 Mon Sep 17 00:00:00 2001 From: Owen Schwartz Date: Thu, 16 Jan 2025 07:41:56 -0500 Subject: [PATCH] Standarize makefile release --- .gitignore | 1 + Makefile | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index e057418..8b1c477 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ newt .DS_Store +bin/ \ No newline at end of file diff --git a/Makefile b/Makefile index 0f0aa39..b895de1 100644 --- a/Makefile +++ b/Makefile @@ -13,14 +13,14 @@ test: local: CGO_ENABLED=0 go build -o newt -all_arches: - CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o newt_linux_arm64 - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o newt_linux_amd64 - CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o newt_darwin_arm64 - CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o newt_darwin_amd64 - CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o newt_windows_amd64.exe - CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -o newt_freebsd_amd64 - CGO_ENABLED=0 GOOS=freebsd GOARCH=arm64 go build -o newt_freebsd_arm64 +release: + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o bin/newt_linux_arm64 + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/newt_linux_amd64 + CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o bin/newt_darwin_arm64 + CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o bin/newt_darwin_amd64 + CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o newt_windows_amd64.bin/exe + CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -o bin/newt_freebsd_amd64 + CGO_ENABLED=0 GOOS=freebsd GOARCH=arm64 go build -o bin/newt_freebsd_arm64 clean: rm newt