-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
40 lines (33 loc) · 1003 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
build_all: build_mac build_linux build_linux_386 build_windows build_windows_386
build_mac: ## BUILD for Mac
@export GOARCH="amd64"
@export GOOS="darwin"
@export CGO_ENABLED=1
@go build -o mac_amd64 -v .
build_mac: ## BUILD for Mac
@export GOARCH="arm64"
@export GOOS="darwin"
@export CGO_ENABLED=1
@go build -o mac_arm64 -v .
build_linux: ### BUILD for Linux
@export GOARCH="amd64"
@export GOOS="linux"
@export CGO_ENABLED=0
@go build -o linux_amd64 -v
build_linux_386: ### BUILD for Linux 386
@export GOARCH="386"
@export GOOS="linux"
@export CGO_ENABLED=0
@go build -o linux_i386 -v
build_windows_386: ###WINDOWS
@export GOARCH="386"
@export GOOS="windows"
@export CGO_ENABLED=0
@go build -o windows_386.exe -v
build_windows: ### WINDOWS
@export GOARCH="amd64"
@export GOOS="windows"
@export CGO_ENABLED=0
@go build -o windows_amd64.exe -v
clean: ### Clean built files
@rm -f mac_amd64 linux_amd64 linux_i386 windows_386.exe windows_amd64.exe