Merge pull request #527 from thockin/release-3.x
Fix Makefile to run tools on host OS/ARCH (v3)
This commit is contained in:
commit
7868e6093a
6
Makefile
6
Makefile
|
|
@ -122,8 +122,10 @@ DOTFILE_IMAGE = $(subst /,_,$(IMAGE))-$(TAG)
|
||||||
|
|
||||||
LICENSES = .licenses
|
LICENSES = .licenses
|
||||||
|
|
||||||
$(LICENSES): bin/$(shell go env GOOS)_$(shell go env GOARCH)/$(BIN)
|
$(LICENSES):
|
||||||
@go build -o ./bin/tools github.com/google/go-licenses
|
@GOOS=$(shell go env GOHOSTOS) \
|
||||||
|
GOARCH=$(shell go env GOHOSTARCH) \
|
||||||
|
go build -o ./bin/tools github.com/google/go-licenses
|
||||||
@rm -rf $(LICENSES)
|
@rm -rf $(LICENSES)
|
||||||
@./bin/tools/go-licenses save ./... --save_path=$(LICENSES)
|
@./bin/tools/go-licenses save ./... --save_path=$(LICENSES)
|
||||||
@chmod -R a+rx $(LICENSES)
|
@chmod -R a+rx $(LICENSES)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue