File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,11 @@ all: bin/cfssl bin/cfssl-bundle bin/cfssl-certinfo bin/cfssl-newkey bin/cfssl-sc
99
1010bin/% : $(shell find . -type f -name '* .go')
1111 @mkdir -p $(dir $@ )
12+ ifneq ($(and $(TARGETOS ) ,$(TARGETARCH ) ) ,)
1213 GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) go build -ldflags $(LDFLAGS) -o $@ ./cmd/$(@F)
14+ else
15+ go build -ldflags $(LDFLAGS) -o $@ ./cmd/$(@F)
16+ endif
1317
1418.PHONY : install
1519install : install-cfssl install-cfssl-bundle install-cfssl-certinfo install-cfssl-newkey install-cfssl-scan install-cfssljson install-mkbundle install-multirootca
@@ -25,7 +29,11 @@ serve:
2529
2630bin/goose : $(shell find vendor -type f -name '* .go')
2731 @mkdir -p $(dir $@ )
32+ ifneq ($(and $(TARGETOS ) ,$(TARGETARCH ) ) ,)
2833 GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) go build -o $@ ./vendor/bitbucket.org/liamstask/goose/cmd/goose
34+ else
35+ go build -o $@ ./vendor/bitbucket.org/liamstask/goose/cmd/goose
36+ endif
2937
3038.PHONY : clean
3139clean :
You can’t perform that action at this time.
0 commit comments