-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
53 lines (32 loc) · 1.16 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
GOPATH=$(CURDIR)/server
GOPACKAGE=restjester
SERVERBIN=${GOPATH}/bin/restjester
all:
GOPATH=${GOPATH} go install ${GOPACKAGE}
test:
GOPATH=${GOPATH} go test ${GOPACKAGE}
run: stop all
${SERVERBIN}
stop:
- killall ${GOPACKAGE}
clean:
rm -f ${SERVERBIN}
xcompile:
# windows 64
mkdir -p releases/windows/amd64
GOPATH=${GOPATH} GOOS=windows GOARCH=amd64 go build -o releases/windows/amd64/restjester ${GOPACKAGE}
# OSX 64
mkdir -p releases/OSX/amd64
GOPATH=${GOPATH} GOOS=darwin GOARCH=amd64 go build -o releases/darwin/amd64/restjester ${GOPACKAGE}
# linux 64
mkdir -p releases/linux/amd64
GOPATH=${GOPATH} GOOS=linux GOARCH=amd64 go build -o releases/linux/amd64/restjester ${GOPACKAGE}
# linux 64
mkdir -p releases/linux/386
GOPATH=${GOPATH} GOOS=linux GOARCH=386 go build -o releases/linux/386/restjester ${GOPACKAGE}
# linux arm ( chromeboook )
mkdir -p releases/linux/arm
GOPATH=${GOPATH} GOOS=linux GOARCH=arm go build -o releases/linux/arm/restjester ${GOPACKAGE}
# linux arm64 ( better chromeboook )
mkdir -p releases/linux/arm64
GOPATH=${GOPATH} GOOS=linux GOARCH=arm64 go build -o releases/linux/arm64/restjester ${GOPACKAGE}