File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 1
- default :
1
+ build :
2
2
CGO_ENABLED=0 go build -ldflags=" -s -w"
3
- linux-amd64 :
4
- CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o build/schem-diff-linux-amd64
5
- linux-arm64 :
6
- CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -ldflags=" -s -w" -o build/schem-diff-linux-arm64
7
- darwin-amd64 :
8
- CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -ldflags=" -s -w" -o build/schem-diff-darwin-amd64
9
- darwin-arm64 :
10
- CGO_ENABLED=0 GOARCH=arm64 GOOS=darwin go build -ldflags=" -s -w" -o build/schem-diff-darwin-arm64
11
- windows-amd64 ::
12
- CGO_ENABLED=0 GOARCH=amd64 GOOS=windows go build -ldflags=" -s -w" -o build/schem-diff-windows-amd64
13
- windows-arm64 ::
14
- CGO_ENABLED=0 GOARCH=arm64 GOOS=windows go build -ldflags=" -s -w" -o build/schem-diff-windows-arm64
15
- all : linux-amd64 linux-arm64 darwin-amd64 darwin-arm64 windows-amd64 windows-arm64
3
+
4
+ build-use-env :
5
+ CGO_ENABLED=0 go build -ldflags=" -s -w" -o build/schema-diff-${GOOS} -${GOARCH}
6
+
7
+ all :
8
+ make GOARCH=amd64 GOOS=linux build-use-env
9
+ make GOARCH=arm64 GOOS=linux build-use-env
10
+ make GOARCH=amd64 GOOS=darwin build-use-env
11
+ make GOARCH=arm64 GOOS=darwin build-use-env
12
+ make GOARCH=amd64 GOOS=windows build-use-env
13
+ make GOARCH=arm64 GOOS=windows build-use-env
16
14
17
15
clean :
18
16
rm -rf build
You can’t perform that action at this time.
0 commit comments