-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
53 lines (42 loc) · 2.57 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
build:
go generate ./...
CGO_ENABLED=0 go build -o _out/dops ./cmd/dops
run: build
./_out/dops
clean:
go clean
rm ./_out/*
package:
go clean
rm -rf ./_out/*
_data/package-data/sanitycheck.sh
GOARCH=386 GOOS=linux CGO_ENABLED=0 go build -o _out/dops_linux-386-static ./cmd/dops # Linux - 32 bit
GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -o _out/dops_linux-amd64-static ./cmd/dops # Linux - 64 bit
GOARCH=arm64 GOOS=linux CGO_ENABLED=0 go build -o _out/dops_linux-arm64-static ./cmd/dops # Linux - ARM
GOARCH=386 GOOS=linux go build -o _out/dops_linux-386 ./cmd/dops # Linux - 32 bit
GOARCH=amd64 GOOS=linux go build -o _out/dops_linux-amd64 ./cmd/dops # Linux - 64 bit
GOARCH=arm64 GOOS=linux go build -o _out/dops_linux-arm64 ./cmd/dops # Linux - ARM
GOARCH=arm GOOS=linux GOARM=5 go build -o _out/dops_linux-arm32v5 ./cmd/dops # Linux - ARM32 v5 (e.g. Raspberry 3)
GOARCH=arm GOOS=linux GOARM=6 go build -o _out/dops_linux-arm32v6 ./cmd/dops # Linux - ARM32 v6
GOARCH=arm GOOS=linux GOARM=7 go build -o _out/dops_linux-arm32v7 ./cmd/dops # Linux - ARM32 v7
GOARCH=amd64 GOOS=darwin go build -o _out/dops_macos-amd64 ./cmd/dops # macOS - 32 bit
GOARCH=amd64 GOOS=darwin go build -o _out/dops_macos-amd64 ./cmd/dops # macOS - 64 bit
GOARCH=amd64 GOOS=openbsd go build -o _out/dops_openbsd-amd64 ./cmd/dops # OpenBSD - 64 bit
GOARCH=arm64 GOOS=openbsd go build -o _out/dops_openbsd-arm64 ./cmd/dops # OpenBSD - ARM
GOARCH=amd64 GOOS=freebsd go build -o _out/dops_freebsd-amd64 ./cmd/dops # FreeBSD - 64 bit
GOARCH=arm64 GOOS=freebsd go build -o _out/dops_freebsd-arm64 ./cmd/dops # FreeBSD - ARM
_data/package-data/aur-git.sh
_data/package-data/aur-bin.sh
_data/package-data/homebrew.sh
echo ""
echo "[TODO]: call 'make package-push-aur-git' "
echo "[TODO]: call 'make package-push-aur-bin' "
echo "[TODO]: call 'make package-push-homebrew' "
echo "[TODO]: create github release"
echo ""
package-push-aur-git:
cd _out/dops-git && git push
package-push-aur-bin:
cd _out/dops-bin && git push
package-push-homebrew:
cd _out/homebrew-tap && git push