From eea92760c9f9f2fa108cf759f2b4ca17b57e8364 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 24 Aug 2021 17:04:45 +0100 Subject: rescribe: improve makefile to match the way we deploy to the website --- cmd/rescribe/makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/cmd/rescribe/makefile b/cmd/rescribe/makefile index 32620f2..aee2114 100644 --- a/cmd/rescribe/makefile +++ b/cmd/rescribe/makefile @@ -1,15 +1,19 @@ # See LICENSE file for copyright and license details. -all: rescribe-osx rescribe-osx-m1 rescribe.exe rescribe +all: dist/linux/rescribe dist/darwin_amd64/rescribe dist/darwin_arm64/rescribe dist/windows/rescribe.exe -rescribe: +dist/linux/rescribe: + mkdir -p dist/linux GOOS=linux GOARCH=amd64 go build -o $@ . -rescribe-osx: +dist/darwin_amd64/rescribe: + mkdir -p dist/darwin_amd64 GOOS=darwin GOARCH=amd64 go build -o $@ . -rescribe-osx-m1: +dist/darwin_arm64/rescribe: + mkdir -p dist/darwin_arm64 GOOS=darwin GOARCH=arm64 go build -o $@ . -rescribe.exe: +dist/windows/rescribe.exe: + mkdir -p dist/windows GOOS=windows GOARCH=386 go build -o $@ . -- cgit v1.2.1-24-ge1ad