From 514665f407af82e2fe215971f247acba60959977 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 16 Nov 2020 15:27:18 +0000 Subject: Add makefile for generating cross compiled rescribe binaries --- makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 makefile 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 -- cgit v1.2.1-24-ge1ad