-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (41 loc) · 1.43 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
default:
GOOS=darwin go build -v -o jiffy
install-mac:
GOOS=darwin go build -v -o jiffy
mv jiffy /usr/local/bin
install-linux:
GOOS=linux go build -v -o jiffy
mv jiffy /usr/local/bin
docker:
GOOS=linux go build -v -o jiffy
# docker build -t jiffy .
# docker run -p 3000:3000 jiffy
all:
# macos
GOOS=darwin GOARCH=amd64 go build -v -o jiffy
mv jiffy ./binary_distributions/darwin_amd64
# linux
GOOS=linux GOARCH=amd64 go build -v -o jiffy
mv jiffy ./binary_distributions/jiffy_linux_amd64
GOOS=linux GOARCH=arm go build -v -o jiffy
mv jiffy ./binary_distributions/jiffy_linux_arm
GOOS=linux GOARCH=arm64 go build -v -o jiffy
mv jiffy ./binary_distributions/jiffy_linux_arm64
GOOS=linux GOARCH=ppc64 go build -v -o jiffy
mv jiffy ./binary_distributions/jiffy_linux_ppc64
GOOS=linux GOARCH=mips64 go build -v -o jiffy
mv jiffy ./binary_distributions/jiffy_linux_mips64
GOOS=linux GOARCH=s390x go build -v -o jiffy
mv jiffy ./binary_distributions/jiffy_linux_s390x
# freebsd
GOOS=freebsd GOARCH=amd64 go build -v -o jiffy
mv jiffy ./binary_distributions/jiffy_freebsd_amd64
GOOS=freebsd GOARCH=arm go build -v -o jiffy
mv jiffy ./binary_distributions/jiffy_freebsd_arm
# openbsd
GOOS=openbsd GOARCH=amd64 go build -v -o jiffy
mv jiffy ./binary_distributions/jiffy_openbsd_amd64
GOOS=openbsd GOARCH=arm go build -v -o jiffy
mv jiffy ./binary_distributions/jiffy_openbsd_arm
clean:
rm /usr/local/bin/jiffy