summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-11-16 15:27:18 +0000
committerNick White <git@njw.name>2020-11-16 15:27:18 +0000
commit514665f407af82e2fe215971f247acba60959977 (patch)
treef9e481dcc834c31a8b9a0760510e56d54ca94625
parent33f1726a4c9f8013dcde39e644281059d9766bc4 (diff)
Add makefile for generating cross compiled rescribe binaries
-rw-r--r--makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..6ba1af5
--- /dev/null
+++ b/makefile
@@ -0,0 +1,12 @@
+# See LICENSE file for copyright and license details.
+
+default:
+ @echo "To build and install use the basic go tools like so: go install ./..."
+ @echo "This makefile is just for cross compiling (for which the"
+ @echo "targets rescribe-osx and rescribe-w32 exist)"
+
+rescribe-osx:
+ GOOS=darwin GOARCH=amd64 go build -o $@ ./cmd/rescribe
+
+rescribe.exe:
+ GOOS=windows GOARCH=386 go build -o $@ ./cmd/rescribe