Skip to content

Commit

Permalink
bake target as first arg
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherve committed Jun 9, 2024
1 parent 5b36738 commit 6e8ab9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ init: check-reqs
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

build: check-reqs
@set -x; $(bake_cli) --set '*.platform=linux/$(ARCH)' $(shell make --silent list)
@set -x; $(bake_cli) $(shell make --silent list) --set '*.platform=linux/$(ARCH)'

build-%:
@$(call check_image,$*)
@set -x; $(bake_cli) --set '*.platform=linux/$(ARCH)' '$*'
@set -x; $(bake_cli) '$*' --set '*.platform=linux/$(ARCH)'

buildall: check-reqs
@set -x; $(bake_base_cli) linux
@set -x; $(bake_cli) linux

show:
@$(bake_cli) linux --print
@et -x; $(bake_cli) linux --print

list: check-reqs
@set -x; make --silent show | jq -r '.target | path(.. | select(.platforms[] | contains("linux/$(ARCH)"))?) | add'
Expand Down

0 comments on commit 6e8ab9e

Please sign in to comment.