Skip to content

Commit 2703ba3

Browse files
authored
Merge pull request #25 from sriumcp/assets
Parallelization at 2
2 parents ef891c6 + 285753d commit 2703ba3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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
8682
build-cross: LDFLAGS += -extldflags "-static"
8783
build-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
9187
dist: build-cross

0 commit comments

Comments
 (0)