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