@@ -80,39 +80,35 @@ hadolint:
8080shellcheck :
8181 @$(ROOT_DIR ) /tools/shellcheck -e SC1091 jenkins-support * .sh tests/test_helpers.bash tools/hadolint tools/shellcheck .ci/publish.sh
8282
83- # Build targets depending on the current OS and architecture
83+ # Build all targets with on the current OS and architecture
8484build : check-reqs
8585 @set -x; $(bake_base_cli ) --set ' *.platform=$(OS)/$(ARCH)' $(shell make --silent list)
8686
8787# Build targets depending on the architecture (Linux only, no multiarch for Windows)
8888buildarch-% : check-reqs
8989 @$(bake_base_cli ) --set ' *.platform=linux/$*' $(shell make --silent listarch-$* )
9090
91- # Build a specific target with the current architecture
91+ # Build a specific target with the current OS and architecture
9292build-% : check-reqs
9393 @$(call check_image,$* )
9494 @set -x; $(bake_base_cli ) --set ' *.platform=$(OS)/$(ARCH)' ' $*'
9595
9696# Show all targets
9797show :
98- @$( bake_base_cli ) --progress=quiet all --print | jq
98+ @make show- all
9999
100100# Show a specific target
101101show-% :
102102 @$(bake_base_cli ) --progress=quiet ' $*' --print | jq
103103
104104# List tags of all targets
105105tags :
106- @make show | jq -r ' .target | to_entries[] | .key as $$name | .value. tags[] | "\(.) (\($$name))" ' | LC_ALL=C sort -u
106+ @make tags-all
107107
108108# List tags of a specific target
109109tags-% :
110110 @make show-$* | jq -r ' .target | to_entries[] | .key as $$name | .value.tags[] | "\(.) (\($$name))"' | LC_ALL=C sort -u
111111
112- # List all platforms
113- platforms :
114- @make show | jq -r ' .target | to_entries[] | .key as $$name | .value.platforms[] | "\($$name):\(.)"' | LC_ALL=C sort -u
115-
116112# List platforms of a specific target
117113platforms-% :
118114 @make show-$* | jq -r ' .target | to_entries[] | .key as $$name | .value.platforms[] | "\($$name):\(.)"' | LC_ALL=C sort -u
@@ -123,7 +119,7 @@ list: check-reqs
123119
124120# Return the list of targets depending on the architecture (Linux only, no multiarch for Windows)
125121listarch-% : check-reqs
126- @make --silent show | jq -r ' .target | path(.. | select(.platforms[] | contains("linux/$*"))?) | add'
122+ @set -x ; make --silent show | jq -r ' .target | path(.. | select(.platforms[] | contains("linux/$*"))?) | add'
127123
128124# Ensure bats exists in the current folder
129125bats :
0 commit comments