File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed 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
9
9
10
10
bin/% : $(shell find . -type f -name '* .go')
11
11
@mkdir -p $(dir $@ )
12
+ ifneq ($(and $(TARGETOS ) ,$(TARGETARCH ) ) ,)
12
13
GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) go build -ldflags $(LDFLAGS) -o $@ ./cmd/$(@F)
14
+ else
15
+ go build -ldflags $(LDFLAGS) -o $@ ./cmd/$(@F)
16
+ endif
13
17
14
18
.PHONY : install
15
19
install : 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:
25
29
26
30
bin/goose : $(shell find vendor -type f -name '* .go')
27
31
@mkdir -p $(dir $@ )
32
+ ifneq ($(and $(TARGETOS ) ,$(TARGETARCH ) ) ,)
28
33
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
29
37
30
38
.PHONY : clean
31
39
clean :
You can’t perform that action at this time.
0 commit comments