1
0
mirror of https://github.com/mgerb/tmail synced 2026-01-10 09:32:48 +00:00

add makefile for cross compiling

This commit is contained in:
2018-02-27 15:21:54 -06:00
parent b626050b5f
commit 4c2beaabf7
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
vendor
*.db
tmail
build

13
makefile Normal file
View File

@@ -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