-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathMakefile
64 lines (58 loc) · 2.13 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# All
all: packr client server packr-clean
# Client build commands
client-linux-i386:
GOOS=linux GOARCH=386 ./build-scripts/build.sh client
client-linux-amd64:
GOOS=linux GOARCH=amd64 ./build-scripts/build.sh client
client-linux-arm:
GOOS=linux GOARCH=arm ./build-scripts/build.sh client
client-windows-i386:
GOOS=windows GOARCH=386 ./build-scripts/build.sh client
client-windows-amd64:
GOOS=windows GOARCH=amd64 ./build-scripts/build.sh client
client-darwin-amd64:
GOOS=darwin GOARCH=amd64 ./build-scripts/build.sh client
# Server build commands
server-linux-i386:
GOOS=linux GOARCH=386 ./build-scripts/build.sh server
server-linux-amd64:
GOOS=linux GOARCH=amd64 ./build-scripts/build.sh server
server-linux-arm:
GOOS=linux GOARCH=arm ./build-scripts/build.sh server
server-windows-i386:
GOOS=windows GOARCH=386 ./build-scripts/build.sh server
server-windows-amd64:
GOOS=windows GOARCH=amd64 ./build-scripts/build.sh server
server-darwin-amd64:
GOOS=darwin GOARCH=amd64 ./build-scripts/build.sh server
# Packr
packr-client:
cd cmd/engarde-client && packr2
packr-server:
cd cmd/engarde-server && packr2
packr-clean-client:
cd cmd/engarde-client && packr2 clean
packr-clean-server:
cd cmd/engarde-server && packr2 clean
packr: packr-client packr-server
packr-clean: packr-clean-client packr-clean-server
# Platform-specific builds
linux-i386: client-linux-i386 server-linux-i386
linux-amd64: client-linux-amd64 server-linux-amd64
linux-arm: client-linux-arm server-linux-arm
windows-i386: client-windows-i386 server-windows-i386
windows-amd64: client-windows-amd64 server-windows-amd64
darwin-amd64: client-darwin-amd64 server-darwin-amd64
linux: linux-i386 linux-amd64 linux-arm
windows: windows-i386 windows-amd64
darwin: darwin-amd64
# Type-specific builds
client-i386: client-linux-i386 client-windows-i386
client-amd64: client-linux-amd64 client-windows-amd64 client-darwin-amd64
client-arm: client-linux-arm
server-i386: server-linux-i386 server-windows-i386
server-amd64: server-linux-amd64 server-windows-amd64 server-darwin-amd64
server-arm: server-linux-arm
client: client-i386 client-amd64 client-arm
server: server-i386 server-amd64 server-arm