From: Andrew Cooper Date: Mon, 10 Jun 2019 17:52:04 +0000 (+0100) Subject: automation: Add an 'all' target for container maintenance X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~2080 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=892e538f43bb01c00718345aa3b0133ee74b4164;p=xen.git automation: Add an 'all' target for container maintenance Signed-off-by: Andrew Cooper Acked-by: Doug Goldstein --- diff --git a/automation/build/Makefile b/automation/build/Makefile index 773b16037c..7c7612b1d9 100644 --- a/automation/build/Makefile +++ b/automation/build/Makefile @@ -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)