Skip to content
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.

Commit

Permalink
add make platform bin
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzl committed Jan 16, 2018
1 parent 2c1506a commit 02137c5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
@@ -1,2 +1,16 @@
build:
cd cmd && go build -o ../qanswer
build_linux_amd64:
cd cmd && GOOS=linux GOARCH=amd64 go build -o ../qanswer_linux_amd64
build_linux_386:
cd cmd && GOOS=linux GOARCH=386 go build -o ../qanswer_linux_386
build_linux_arm:
cd cmd && GOOS=linux GOARCH=arm go build -o ../qanswer_linux_arm
build_windows_amd64:
cd cmd && GOOS=windows GOARCH=amd64 go build -o ../qanswer_windows_amd64.exe
build_windows_386:
cd cmd && GOOS=windows GOARCH=386 go build -o ../qanswer_windows_386.exe
build_darwin_amd64:
cd cmd && GOOS=darwin GOARCH=amd64 go build -o ../qanswer_darwin_amd64.exe

build_all:build_linux_amd64 build_linux_386 build_linux_arm build_windows_amd64 build_windows_386 build_darwin_amd64

0 comments on commit 02137c5

Please sign in to comment.