Skip to content

Commit

Permalink
Fix licenses for other arch'es
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Apr 16, 2021
1 parent bb6f444 commit 6ac6e4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ DOTFILE_IMAGE = $(subst /,_,$(IMAGE))-$(TAG)

LICENSES = .licenses

$(LICENSES): bin/$(OS)_$(ARCH)/$(BIN)
$(LICENSES): bin/$(shell go env GOOS)_$(shell go env GOARCH)/$(BIN)
@go build -o ./bin/tools github.com/google/go-licenses
@rm -rf $(LICENSES)
@./bin/tools/go-licenses save ./... --save_path=$(LICENSES)
Expand All @@ -149,6 +149,7 @@ container: .container-$(DOTFILE_IMAGE) container-name

container-name:
@echo "container: $(IMAGE):$(TAG)"
@echo

push: .push-$(DOTFILE_IMAGE) push-name
.push-$(DOTFILE_IMAGE): .container-$(DOTFILE_IMAGE)
Expand All @@ -157,6 +158,7 @@ push: .push-$(DOTFILE_IMAGE) push-name

push-name:
@echo "pushed: $(IMAGE):$(TAG)"
@echo

# This depends on github.com/estesp/manifest-tool in $PATH.
manifest-list: all-push
Expand Down

0 comments on commit 6ac6e4e

Please sign in to comment.