From 4c2beaabf73be51229e866a336106d472aa91b4e Mon Sep 17 00:00:00 2001 From: Mitchell Date: Tue, 27 Feb 2018 15:21:54 -0600 Subject: [PATCH] add makefile for cross compiling --- .gitignore | 1 + makefile | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 makefile diff --git a/.gitignore b/.gitignore index c747cbd..a70cc12 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ vendor *.db tmail +build diff --git a/makefile b/makefile new file mode 100644 index 0000000..e21181f --- /dev/null +++ b/makefile @@ -0,0 +1,13 @@ +linux: + go build -o ./build/tmail-linux ./main.go + +mac: + GOOS=darwin GOARCH=amd64 go build -o ./build/tmail-mac ./main.go + +windows: + GOOS=windows GOARCH=386 go build -o ./build/tmail-windows.exe ./main.go + +clean: + rm -rf ./build + +all: linux mac windows