@@ -30,7 +30,7 @@ $(XGO):
30
30
.PHONY : golangci-lint
31
31
golangci-lint : $(GOLANGCILINT )
32
32
$(info running linter...)
33
- golangci-lint run --timeout=20m -v
33
+ $( BIN_DIR ) / golangci-lint run --timeout=20m -v
34
34
35
35
.PHONY : go-fmt
36
36
go-fmt :
@@ -57,56 +57,56 @@ endif
57
57
core-linux : $(XGO )
58
58
$(info build core with linux as target...)
59
59
mkdir -p $(ZBCPATH )
60
- xgo --targets=linux/amd64 -out=$(CORE_OUPUT ) --go-private=github.com/zoobc/ * --github-token= $( GITHUB_TOKEN ) ./
60
+ $( XGO ) --targets=linux/amd64 -out=$(CORE_OUPUT ) ./
61
61
62
62
.PHONY : core-arm
63
63
core-arm : $(XGO )
64
64
$(info build core with linux/arm-7 as target...)
65
65
mkdir -p $(ZBCPATH )
66
- xgo --targets=linux/arm-7 -out=$(CORE_OUPUT ) --go-private=github.com/zoobc/ * --github-token= $( GITHUB_TOKEN ) ./
66
+ $( XGO ) --targets=linux/arm-7 -out=$(CORE_OUPUT ) ./
67
67
68
68
.PHONY : core-windows
69
69
core-windows : $(XGO )
70
70
$(info build core with windows as target...)
71
71
mkdir -p $(ZBCPATH )
72
- xgo --targets=windows/* -out=$(CORE_OUPUT ) --go-private=github.com/zoobc/ * --github-token= $( GITHUB_TOKEN ) ./
72
+ $( XGO ) --targets=windows/* -out=$(CORE_OUPUT ) ./
73
73
74
74
.PHONY : core-darwin
75
75
core-darwin : $(XGO )
76
76
$(info build core with darwin/macos as target...)
77
77
mkdir -p $(ZBCPATH )
78
- xgo --targets=darwin/* -out=$(CORE_OUPUT ) --go-private=github.com/zoobc/ * --github-token= $( GITHUB_TOKEN ) ./
78
+ $( XGO ) --targets=darwin/* -out=$(CORE_OUPUT ) ./
79
79
80
80
.PHONY : cmd-darwin
81
81
cmd-darwin : $(XGO )
82
82
$(info build cmd with darwin/macos as target...)
83
83
mkdir -p $(ZBCPATH )
84
- xgo --targets=darwin/* -out=$(CLI_OUPUT ) --go-private=github.com/zoobc/ * --github-token= $( GITHUB_TOKEN ) ./cmd/
84
+ $( XGO ) --targets=darwin/* -out=$(CLI_OUPUT ) ./cmd/
85
85
86
86
.PHONY : cmd-linux
87
87
cmd-linux : $(XGO )
88
88
$(info build cmd with linux as target...)
89
89
mkdir -p $(ZBCPATH )
90
- xgo --targets=linux/amd64 -out=$(CLI_OUPUT ) --go-private=github.com/zoobc/ * --github-token= $( GITHUB_TOKEN ) ./cmd/
90
+ $( XGO ) --targets=linux/amd64 -out=$(CLI_OUPUT ) ./cmd/
91
91
92
92
.PHONY : cmd-arm
93
93
cmd-arm : $(XGO )
94
94
$(info build cmd with linux/arm-7 as target...)
95
95
mkdir -p $(ZBCPATH )
96
- xgo --targets=linux/arm-7 -out=$(CLI_OUPUT ) --go-private=github.com/zoobc/ * --github-token= $( GITHUB_TOKEN ) ./cmd/
96
+ $( XGO ) --targets=linux/arm-7 -out=$(CLI_OUPUT ) ./cmd/
97
97
98
98
.PHONY : cmd-windows
99
99
cmd-windows : $(XGO )
100
100
$(info build cmd with windows as target...)
101
101
mkdir -p $(ZBCPATH )
102
- xgo --targets=windows/* -out=$(CLI_OUPUT ) --go-private=github.com/zoobc/ * --github-token= $( GITHUB_TOKEN ) ./cmd/
102
+ $( XGO ) --targets=windows/* -out=$(CLI_OUPUT ) ./cmd/
103
103
104
104
105
105
.PHONY : core-common-os
106
106
core-common-os : $(XGO )
107
107
$(info build core with windows, linux & darwin as targets...)
108
108
mkdir -p $(ZBCPATH ) /linux $(ZBCPATH ) /windows $(ZBCPATH ) /darwin
109
- xgo --targets=windows/* ,linux/amd64,darwin/amd64 -out=$(CORE_OUPUT ) --go-private=github.com/zoobc/ * --github-token= $( GITHUB_TOKEN ) ./
109
+ $( XGO ) --targets=windows/* ,linux/amd64,darwin/amd64 -out=$(CORE_OUPUT ) ./
110
110
mv $(CORE_OUPUT ) -linux* $(ZBCPATH ) /linux/$(BINARY_CORE_NAME )
111
111
mv $(CORE_OUPUT ) -windows* 386.exe $(ZBCPATH ) /windows/$(BINARY_CORE_NAME ) -32bit.exe
112
112
mv $(CORE_OUPUT ) -windows* amd64.exe $(ZBCPATH ) /windows/$(BINARY_CORE_NAME ) -64bit.exe
@@ -116,7 +116,7 @@ core-common-os: $(XGO)
116
116
cmd-common-os : $(XGO )
117
117
$(info build cmd with windows, linux & darwin as targets...)
118
118
mkdir -p $(ZBCPATH ) /linux $(ZBCPATH ) /windows $(ZBCPATH ) /darwin
119
- xgo --targets=windows/* ,linux/amd64,darwin/amd64 -out=$(CLI_OUPUT ) --go-private=github.com/zoobc/ * --github-token= $( GITHUB_TOKEN ) ./cmd/
119
+ $( XGO ) --targets=windows/* ,linux/amd64,darwin/amd64 -out=$(CLI_OUPUT ) ./cmd/
120
120
mv $(CLI_OUPUT ) -linux* $(ZBCPATH ) /linux/$(BINARY_CLI_NAME )
121
121
mv $(CLI_OUPUT ) -windows* 386.exe $(ZBCPATH ) /windows/$(BINARY_CLI_NAME ) -32bit.exe
122
122
mv $(CLI_OUPUT ) -windows* amd64.exe $(ZBCPATH ) /windows/$(BINARY_CLI_NAME ) -64bit.exe
0 commit comments