File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -72,20 +72,16 @@ install: build
7272# ------------------------------------------------------------------------------
7373# dependencies
7474
75- # If go get is run from inside the project directory it will add the dependencies
76- # to the go.mod file. To avoid that we change to a directory without a go.mod file
77- # when downloading the following dependencies
78-
7975$(GOX ) :
80- (cd / ; GO111MODULE=on go get -u github.com/mitchellh/gox)
76+ go install github.com/mitchellh/gox@latest
8177
8278# ------------------------------------------------------------------------------
8379# release
8480
8581.PHONY : build-cross
8682build-cross : LDFLAGS += -extldflags "-static"
8783build-cross : $(GOX )
88- GOFLAGS=" -trimpath" GO111MODULE=on CGO_ENABLED=0 $(GOX ) -parallel=9 -output=" _dist/{{.OS}}-{{.Arch}}/$( BINNAME) " -osarch=' $(TARGETS)' $(GOFLAGS ) -tags ' $(TAGS)' -ldflags ' $(LDFLAGS)' ./
84+ GOFLAGS=" -trimpath" GO111MODULE=on CGO_ENABLED=0 $(GOX ) -parallel=2 -output=" _dist/{{.OS}}-{{.Arch}}/$( BINNAME) " -osarch=' $(TARGETS)' $(GOFLAGS ) -tags ' $(TAGS)' -ldflags ' $(LDFLAGS)' ./
8985
9086.PHONY : dist
9187dist : build-cross
You can’t perform that action at this time.
0 commit comments