summaryrefslogtreecommitdiff
path: root/cmd/rescribe
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-08-24 17:04:45 +0100
committerNick White <git@njw.name>2021-08-24 17:04:45 +0100
commiteea92760c9f9f2fa108cf759f2b4ca17b57e8364 (patch)
tree7da3d1e7d52df6a56154a13743b6db977ab2f628 /cmd/rescribe
parent9f3fec3e0982c5b419338f68428f12bbeed4c2bb (diff)
rescribe: improve makefile to match the way we deploy to the website
Diffstat (limited to 'cmd/rescribe')
-rw-r--r--cmd/rescribe/makefile14
1 files 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 $@ .