automation: Add an 'all' target for container maintenance
PATCH 1/1 automation: Add an 'all' target for container maintenance
Signed-off-by Andrew Cooper <[email protected]>
---
CC: Wei Liu <[email protected]>
CC: Doug Goldstein <[email protected]>
--- automation/build/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
automation/build/Makefile +5 -3
@@ -1,13 +1,12 @@ # the base of where these containers will appear REGISTRY := registry.gitlab.com/xen-project/xen +CONTAINERS = $(subst .dockerfile,,$(wildcard */*.dockerfile)) help: @echo "Builds containers for building Xen based on different distros" @echo "To build one run 'make DISTRO/VERSION'. Available containers:" - @$(foreach file,$(sort $(subst .dockerfile,,$(wildcard */*.dockerfile))), \ - echo ${file} ; \ - ) + @$(foreach file,$(sort $(CONTAINERS)),echo ${file};) @echo "To push container builds, set the env var PUSH" %: %.dockerfile ## Builds containers
@@ -15,3 +14,6 @@ help: @if [ ! -z $${PUSH+x} ]; then \ docker push $(REGISTRY)/$(@D):$(@F); \ fi + +.PHONY: all +all: $(CONTAINERS)
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Andrew Cooper
Signed-off-by Andrew Cooper <[email protected]>---
CC: Wei Liu <[email protected]>
CC: Doug Goldstein <[email protected]>
Acked-by Doug Goldstein <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel